[SWLUG] Network backups
Dave Cridland
dave at cridland.net
Tue Sep 12 18:30:39 UTC 2006
On Tue Sep 12 17:37:12 2006, Chris M. Jackson wrote:
> In this case, it is the input to "cat" on the remote machine. Be
> warned that lots of programs let you do this, but others will just
> create a file called "-".
As a brief aside, if you do end up with a file called '-', or just
beginning with '-', then you can remove it safely with a command like:
rm -- -
The double-dash stops command line processing, so the remaining
arguments (the dash) is treated as a filename and not an option.
You can also do:
rm ./-
Both tricks are especially useful to remember for when you end up
with a file called '-rf', of course.
This is different from the way to remove files with * or ? in the
name - enclose those in single quotes to prevent the shell - not rm -
from expanding them: rm '*'
Dave.
--
Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at jabber.org
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
More information about the Swlug
mailing list