Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: deleting directory named -I (as Ice).

by jeffenstein (Hermit)
on May 22, 2002 at 05:45 UTC ( [id://168361]=note: print w/replies, xml ) Need Help??


in reply to deleting directory named -I (as Ice).

This is really more a unix question than a perl question, but... rm ./-I will delete the file. So long as the first character is not a dash, then it works fine. Quotes are stripped by the shell, so they don't count as characters.

Update: D'oh! As pepik_knize pointed out below, it's a directory, not a file. rmdir ./-I is what I should have said.

Replies are listed 'Best First'.
Re: Re: deleting directory named -I (as Ice).
by pepik_knize (Scribe) on May 22, 2002 at 06:00 UTC
    but... rm ./-I will delete the file

    Almost. It's a directory, so you would need rm -R to get rid of it (and everything in it).

    Pepik


    Of all the causes that conspire to blind
    Man's erring judgment, and misguide the mind,
    What the weak head with strongest bias rules,
    Is pride, the never-failing vice of fools.
    -- Pope.
    (Humble to be American.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://168361]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-16 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found