Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Cleaner way of looping through a file and stripping only certain lines?

by mreece (Friar)
on Dec 09, 2006 at 17:06 UTC ( #588802=note: print w/replies, xml ) Need Help??


in reply to Cleaner way of looping through a file and stripping only certain lines?

here's a unixy non-perl solution:

egrep -v '@.*mail(9|[1-9][0-9])' < in-file > out-file
  • Comment on Re: Cleaner way of looping through a file and stripping only certain lines?
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2021-03-01 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?