Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Remove a line from a file using perl one liner

by ikegami (Patriarch)
on Mar 19, 2009 at 14:00 UTC ( [id://751721]=note: print w/replies, xml ) Need Help??


in reply to Re: Remove a line from a file using perl one liner
in thread Remove a line from a file using perl one liner

Lines in httpd conf files are sometimes indented.
perl -pi -e's#^\s+Alias.*/icons/.*##s' one.txt

Replies are listed 'Best First'.
Re^3: Remove a line from a file using perl one liner
by olus (Curate) on Mar 19, 2009 at 14:09 UTC

    You're absolutely right. Thanks

    I'll go and write on the white board 'assumptions are evil' :o)

Re^3: Remove a line from a file using perl one liner
by Anonymous Monk on Mar 19, 2009 at 14:11 UTC
    Thanks All ...It worked well for me.
    Thanks a lot.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found