[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trm - a command that removes files into a temporary "trash" folder
Stas!
The idea was to automate the process of removing files to trash, such that
new files moved into a trash that has older files with the same name,
wouldn't replace the old files but rather be renamed with a suffix .0, .1
etc. Otherwise, a simple move to trash is one step away from a real
removal.
Cheers!!
Tal Davidson
On Sun, 1 Jun 1997, Stas Bekman wrote:
> Tal,
> Why do you need a shell and to compile something
>
> why don't
> alias trash 'mv \!* ~/.trash';
> or
> alias t 'mv \!* ~/.trash';
>
> When you need to clean the trash do
>
> alias clean 'rm -rf ~/.trash'
> or some more sophisticated to remove only files which are older than few
> days or so...
>
> Don't get me wrong, it's just another way to do the same thing :-)
> Please, use the way you like...
>
> BTW, does your host name is wrong or it's a problem on the mine side:
> It's bounced:
> ----- Transcript ofsession follows -----
> 550 <tald@dvash.huji.ac.il>... Host unknown (Name server:
> dvash.huji.ac.il.: host not found)
>
>
> Regards,
> -------------------------------------------------------------------------------
> Stas Bekman sbekman@iil.intel.com.il [WebMaster at Intel Corp. ]
> Address: Aba Silver 12/29, Haifa, 32694, Israel
> Phones: [w] 972-(0)4-865-5188, [h] 972-(0)4-828-2264/3020
> Home Page: http://techunix.technion.ac.il/~ofelix
> Resource Center http://www.mardanit.co.il/Center (CGI, PC, Security, Linux)
> Linux-il Home: http://www.linux.org.il/
>
>
References: