Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Print string next to pattern matching?

by Anonymous Monk
on May 05, 2015 at 06:52 UTC ( [id://1125675]=note: print w/replies, xml ) Need Help??


in reply to Print string next to pattern matching?

Um, see Perl script to find particular string and save those lines in another file? and do it just like that
  • Comment on Re: Print string next to pattern matching?

Replies are listed 'Best First'.
Re^2: Print string next to pattern matching?
by sumathigokul (Acolyte) on May 05, 2015 at 07:35 UTC

    It prints/saves the whole statement which contains the pattern. But, i want the script to print only the string (not full line) next to colon (:).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found