Hadi, If I well understood you just want to show the lines which contain the "Tekta" word, if that is the case as follows a possible solution:
find / -name "*" |xargs sed '/^Tekra$/!d' See ya.. leandro On Tue, Jan 11, 2011 at 4:55 AM, Romeo Ninov <[email protected]> wrote: > find / -name "*" |xargs grep Tekra |grep -v "Tekta GSM BSC" > > Regards: Romeo Ninov > > > -----Original Message----- > From: [email protected] [mailto: > [email protected]] On Behalf Of Hadi Motamedi > Sent: Tuesday, January 11, 2011 7:48 AM > To: [email protected] > Subject: [Solaris-Users] xargs? > > Dear All > >From my previous post, I learned how to search for a string inside > files as : > #find / -name "*" |xargs grep "Tekta GSM BSC" > But for the current case I need to narrow down the search result to > just the ones that contain "Tekta" but not the ones that contain > "Tekta *" .Can you please let me know how to modify my search string > to accomplish this? > Thank you > _______________________________________________ > Solaris-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/solaris-users > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 5776 (20110110) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 5776 (20110110) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > _______________________________________________ > Solaris-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/solaris-users > _______________________________________________ Solaris-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/solaris-users
