[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trm - a command that removes files into a temporary "trash"
Tal Davidson writes:
>
>
> On Sun, 1 Jun 1997, Tal Davidson wrote:
>
> > Oleg!
> >
> > Thanks. Next time I'll query more thoroughly through the mans before I
> > sit and write.
> >
> > Tal Davidson
> >
>
> Then again...
> I looked deeper into the "mv -bfV numbered file-to-trash ~/.trash", but
> see that it sufferes from the same problem I had in the past - while
> moving files fantastically (and numberating!), it can't move a directory
> to trash if there already exists one there of the same name.
>
> Is there any simple way to get around that? (I haven't found any in the
> mv man). Otherwise, ... trm
>
> Thanks!
> Tal Davidson
>
I presume you've checked that mv can't backup directories. Then,
e. g., first tar the directory structure, then mv the result and rm
the original. Could save some space, too.
Oleg.
References: