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 (:).