1753937 Members
9994 Online
108811 Solutions
New Discussion юеВ

command

 
SOLVED
Go to solution
Joyce Suganthy
Advisor

command

Hi,

Is there any command in ver 11 which is equivalent to 'grep -w' in ver 11i?

Thanks

regards
3 REPLIES 3
T G Manikandan
Honored Contributor
Solution

Re: command

Mark Grant
Honored Contributor

Re: command

No,

However, the best I cn think of at the moment is this.

perl -n -e 'if($_=~/\bGREPSTRING\b/){print;}' myfile
Never preceed any demonstration with anything more predictive than "watch this"
Norman_21
Honored Contributor

Re: command

Joyce,

Try this
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xd97442308663d611abdb0090277a778c%2C00.html

also, you may make a search in this forum, you'll find a lot of similar threads.

good luck.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003