Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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.

Comment on Re: Grep n awk
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-11-29 04:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls