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


Click here to return to the 'Easier ways' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easier ways
Authored by: macsforever2000 on Jul 31, '02 11:24:57AM

My favorite way is to use the -i modifier and a name close to the desired one.

In this case:

rm -i *myfile

Then is goes through all matching files and asks if you want to delete them.



[ Reply to This | # ]
Easier ways
Authored by: ber on Jul 31, '02 04:49:32PM

-i is useful but needs to be used with gidd's suggestions or you fall into the same trap.

sh-2.05a$ rm -i -x
rm: illegal option -- x
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
sh-2.05a$ rm -i ./-x
remove ./-x?



[ Reply to This | # ]
Easier ways
Authored by: DavidRavenMoon on Jul 31, '02 06:57:46PM

Or ... just drag it to the Trash! (Cmd-Del) How novel! ;)

[ Reply to This | # ]