Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Pattern problem

by mk. (Friar)
on Jan 27, 2006 at 14:33 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2022-01-17 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?