Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Grep n awk

by space_monk (Chaplain)
on Jan 03, 2013 at 17:23 UTC ( #1011491=note: print w/replies, xml ) Need Help??


in reply to Grep n awk

This answer is a bit rushed as I'm in a hurry to go home for a beer, but you should get the idea.

# slurp the file.... my @lines = <$fh>; # filter the lines.... my @filter1 = grep( /mixed/, @lines); my @filter2 = grep( !/-- --/,@filter1);

A Monk aims to give answers to those who have none, and to learn from those who know more.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011491]
help
Chatterbox?
[perldigious]: Don't worry, it's not loaded, is pretty much the most frustrating thing a person can say to another person when you are around a firearm. Basic gun safety courses try really hard to hammer home the "treat it likes it's loaded all the time," thing.
[perldigious]: That's basic.
[erix]: another Darwin award

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-10-17 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (233 votes). Check out past polls.

    Notices?