safely delete

John L Fjellstad john-ubuntu at fjellstad.org
Thu Jan 11 14:56:48 UTC 2007


Carsten Aulbert <carsten at welcomes-you.com> writes:

> Rutger van Haasteren wrote:
>
>> #!/bin/sh
>> mv $1 /home/`whoami`/.Trash/
>
> Make the last line
>
> mv "$@" /home/`whoami`/.Trash/
>
> and it might actually become a little more usable.

Why not just use ${HOME}?
as in
mv "$@" ${HOME}/.Trash/

-- 
John L. Fjellstad
web: http://www.fjellstad.org/          Quis custodiet ipsos custodes





More information about the ubuntu-users mailing list