Removing odd file name
I have a problem and haven't been too successful in resolving.
There is a file with the name '--remove-files' that I am trying to remove from a directory. Any suggestions on how to do this? I am using the bash shell. Code:
-rw-r--r-- 1 root root 3464407040 Jan 22 2011 --remove-files |
Stick a ./ in front of it, or give the full path to the file
Code:
rm ./--remove-files |
Quote it, escape it (backslashes) or end rm options with "--"?
|
Quoting and escaping don't work, FYI
Found that out when I was trying to just create the file to test removing it. |
Well OK then, quoting and end options with "--":
Code:
]$ touch -- "--remove-files" |
lol
"--" to end options is a good one |
All times are GMT -5. The time now is 06:24 PM. |