in reply to pick a word contaning reg-ex
Oh.! Reply from previous post answers my question as well!!
perl -ne '/(\w*!\w*)/g && print "$1\n";' code_file(s)Lesson learnt. search for existing threads before posting questions :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pick a word contaning reg-ex
by space_monk (Chaplain) on Dec 04, 2012 at 14:29 UTC | |
by Lotus1 (Vicar) on Dec 04, 2012 at 15:19 UTC | |
by space_monk (Chaplain) on Dec 04, 2012 at 16:59 UTC |