Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Pattern problem

by mk. (Friar)
on Jan 27, 2006 at 14:33 UTC ( [id://525985]=note: print w/replies, xml ) Need Help??


in reply to Re: Pattern problem
in thread Pattern problem

or simply
perl -ne 'print if /Host System [^#]/;' records.txt


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
grrr.... argh!

Replies are listed 'Best First'.
Re^3: Pattern problem
by Mago (Parson) on Jan 27, 2006 at 15:41 UTC
    perl -pe 's/(Host System [^#].+)|.+/$1/gs' records.txt
    =****

    Mago
    mago@rio.pm.org


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found