[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rm difficult filename



Cameron Hutchison wrote:

Once upon a time Antonio Rodriguez said...
When capturing a file from an url with the command
mplayer -dumpstream -dumpfile archive.rm -playlist url
and other variants, by misplacing the option -rtsp-stream-over-tcp a
file was created with this name, i.e.,
-rtsp-stream-over-tcp is the filename.

Two common ways:

rm -- -rtsp-stream-over-tcp

or

rm ./-rtsp-stream-over-tcp


In the first case, the -- tells rm to stop processing options, in the
second case you're finding a way to refer to the same file in such a way
that it does not start with -.


Often, too, you can use the TAB key to advance over problematic characters, a "?" to represent one of them and "*" to represent any number of them. So

rm ?rtsp-stream-over-tcp
rm *over-tcp

Sometimes, what prints as a space is actually something else. That can be particularly confusing.

--

Cheers
John

-- spambait
1aaaaaaa@computerdatasafe.com.au  Z1aaaaaaa@computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/



Reply to: