Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'another variation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
another variation
Authored by: awk on Feb 27, '03 05:14:24PM

What I have in my aliases file:

alias trash 'mv --verbose --backup=numbered \!* ~/.Trash/'

This will use the built-in backup facilities of "mv" which names backups "file", "file.~1~", "file.~2~", etc.. not as nice as "file copy", "file copy 2" but then again it's just the trash. :-)



[ Reply to This | # ]
oops! requires GNU fileutils
Authored by: awk on Feb 27, '03 05:18:22PM

Oops, just realized this only works with the GNU fileutils' /sw/bin/mv that I installed with Fink. Never mind....unless you have it installed already... the fileutils versions have a lot more options.



[ Reply to This | # ]