Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: sed style file parse from command-line

by superfrink (Curate)
on Dec 28, 2008 at 23:45 UTC ( #732938=note: print w/ replies, xml ) Need Help??


in reply to sed style file parse from command-line

On a related note a couple days ago I used the following to delete lines that matched a pattern from a file.

perl -n -i -e 'print unless (m/^.*line-to-remove$/)' fileA


Comment on Re: sed style file parse from command-line
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-06 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls