Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: regexp matching bad stuff ...

by ikegami (Pope)
on Oct 09, 2009 at 15:04 UTC ( #800303=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -ne'if (s/.../.../) { print } else { print STDERR }'
        <access_log 2>out.err >out.csv
    
  2. or download this
    perl -ne'print { s/.../.../ ? STDOUT : STDERR } $_'
        <access_log 2>out.err >out.csv
    
  3. or download this
    perl -pe'select s/.../.../ ? STDOUT : STDERR'
        <access_log 2>out.err >out.csv
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800303]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2018-02-21 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (282 votes). Check out past polls.

    Notices?