![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search two words in sed | ajitkumar2 | Shell Programming and Scripting | 12 | 08-01-2008 12:00 AM |
| grep on multiple words to match text template | rider29 | Shell Programming and Scripting | 6 | 05-23-2008 08:21 AM |
| problem with grep on search string in a txt file over multiple files | m00 | UNIX for Dummies Questions & Answers | 2 | 05-18-2008 11:21 AM |
| grep with find to search for matchiing words | akhil313 | UNIX for Dummies Questions & Answers | 1 | 12-12-2006 07:18 AM |
| multiple search with grep | amon | Shell Programming and Scripting | 5 | 04-04-2006 03:53 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
|||
|
|||
|
!0 u , its working........
could you please tell me how it will work..... |
| Forum Sponsor | ||
|
|
|
#16
|
||||
|
||||
|
simple.. first i am taking files which have word1 then i am passing those file names as argument to next grep which search for word2...
you can do it by awk also... |
|
#17
|
|||
|
|||
|
suppose if i want search more than two can i use like
grep -l "word1" *.log|xargs grep -l "word2" |xargs grep -l "wrod3" |
|
#18
|
||||
|
||||
|
ya sure it works like word1 and word2 and word3..
|
|
#19
|
|||
|
|||
|
10 u very much.........
|
|
#20
|
|||
|
|||
|
How about
grep word1 *.log | grep word2 |
|
#21
|
|||
|
|||
|
I have a file error.log it has contents.. ldap_add: Already exists ldap_add: Already exists All i need is.. i have to extract the word Already exists alone into a variable.. i tried using grep it s printing the whole line.... can any one help me plz... tHANKS AND REGARDS. Cruiser Bob |
|||
| Google The UNIX and Linux Forums |