Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Pattern problem

by Mago (Parson)
on Jan 27, 2006 at 15:41 UTC ( #526003=note: print w/replies, xml ) Need Help??


in reply to Re^2: Pattern problem
in thread Pattern problem

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
Node Status?
node history
Node Type: note [id://526003]
help
Chatterbox?
[Eily]: what's the point of writing perl if people aren't impressed :P
[sierpinski]: Haha
[Discipulus]: i'm with you!
[Discipulus]: with eskimo greeting is a little bit impressing, anyway
[Eily]: I actually used the eskimo greeting :P, I just wrote the "canonical" form of the oneliner here
[Discipulus]: next time you can add `SARGV-1` and if still not impressed pass a 'rm -f..' as last arg

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-04-26 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (482 votes). Check out past polls.