This one is easy, as escaping does not work you have to prefix the filename with two hyphens like so:
mv — -some_silly_filename_with_an_hyphen_before_it
technorati tags:hyphen, move, mv
~ by princ3 on August 19, 2007.
Posted in linux, terminal
You can also just do this:
mv ./-some_silly_filename_with_an_hyphen_before_it
Unless you are just passing in a filename that might not be in the current directory.
pyre said this on September 6, 2007 at 4:58 pm | Reply
thank you, sometimes you miss the wood for the trees :)
princ3 said this on September 6, 2007 at 7:23 pm | Reply
Name
E-mail (private)
Website
Notify me of follow-up comments via email.
You can also just do this:
mv ./-some_silly_filename_with_an_hyphen_before_it
Unless you are just passing in a filename that might not be in the current directory.
thank you, sometimes you miss the wood for the trees :)