in reply to Print string next to pattern matching?
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 (:).