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 :-)
In reply to Re: pick a word contaning reg-ex
by keesturam
in thread pick a word contaning reg-ex
by keesturam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |