![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | 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 !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recursive FTP -- here at last. | Perderabo | Shell Programming and Scripting | 46 | 2 Weeks Ago 01:40 PM |
| recursive grep issue | Mace | UNIX for Dummies Questions & Answers | 1 | 08-11-2006 04:39 AM |
| recursive GREP ? | alan | UNIX for Dummies Questions & Answers | 3 | 08-22-2003 12:15 AM |
| grep recursive directories | jagannatha | UNIX for Dummies Questions & Answers | 8 | 07-24-2003 01:00 PM |
| Recursive FTP | aslamg | UNIX for Dummies Questions & Answers | 1 | 03-08-2001 12:27 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Why don't you use the -f option?
Code:
grep -rl -f strings.txt /path/to/search/* |
| Forum Sponsor | ||
|
|
|
|||
|
I tried grep -rl -f strings.txt /path/to/search/* > result.txt
Same problem, the string in strings.txt is being split up: /sample/string in/strings file/title.jsp I'm guessing it is being split into these 3 strings: /sample/string in/strings file/title.jsp I know that if I do this grep, I get only 3 results as opposed to the 1588 results I get with the grep -rl -f strings.txt method. grep -rl "/sample/string in/strings file/title.jsp" /path/to/search/* Thanks upstate boy Last edited by upstate_boy : 05-17-2008 at 12:51 PM. |
|
|||
|
Era - I'm not sure how to inspect in the way you are asking but I've deleted the stings.txt and created a new one with vi adding the string back - no copy/paste. When trying grep -rl -f strings.txt I'm still seeing the same behavior as already described.
Thanks upstate boy |