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

Re: [ProgSoc] Funny files..



rm ./\-123

Mike Abdow wrote:

> Check this out..
>
> myke@nospam.geryon [~/crap] 69 $ls
> -123
>
> myke@nospam.geryon [~/crap] 70 $rm -123
> rm: invalid option -- 1
> Try `rm --help' for more information.
>
> myke@nospam.geryon [~/crap] 71 $rm "-123"
> rm: invalid option -- 1
> Try `rm --help' for more information.
>
> myke@nospam.geryon [~/crap] 71 $rm '-123'
> rm: invalid option -- 1
> Try `rm --help' for more information.
>
> myke@nospam.geryon [~/crap] 72 $rm \-123
> rm: invalid option -- 1
> Try `rm --help' for more information.
>
> If you're wondering how you can create such a file in the first place,
> well just edit a file with pico, and save it with the name -123. Now, my
> problem is, how do I remove it?
>
> I know I can just 'cd ..' a level and 'rm -r crap', but this isn't what I
> want to do (what if a file like this is in one's home directory?)
>
> Any takers?



--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>