a. Try to put AFTER all the regular "minus" options a double-dash ("--"), i.e.
mv -v -- oldfile newfile
this tells the command line parser that no options come after the double-dash.

b. sometimes backslash, or tick, is enough, i.e.
rm -v 'my*file'
or
rm -v my\*file

 - Oren


ik wrote:
Hello,

How can I rename and/or delete a file that starts with minus ?
For example:

mv --test test

will end up with the error:
mv: unrecognized option `--test'
Try `mv --help' for more information.

The same error will exists if I'll use the asterisk wildcard instead.
Please note that I'm looking for a "mv" and "rm" based solutions and
not the use (for example) midnight commander.


Thanks,

Ido


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to