Claudius Hubig [2013-07-19 21:15:35 +02:00] wrote:
> $ rm -i "$(ls | tail -1)"
When the file list is unknown (i.e., comes from a variable or pipe etc.)
it is often a good idea to separete options and filenames with the
pseudo-option "--":
$ rm -i -- "$(ls | tail -1)"
This way filenames which look like options won't be used as options.
Attachment:
pgpz2XDG5mMU8.pgp
Description: PGP signature