The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Recursive FTP -- here at last. Perderabo Shell Programming and Scripting 47 2 Weeks Ago 01:32 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

Reply
 
LinkBack Thread Tools Display Modes
  #15 (permalink)  
Old 05-17-2008
ninjaslim's Avatar
Registered User
 

Join Date: May 2008
Location: North Brunswick, NJ
Posts: 10
Do you have any hex dump tools at your disposal?
Reply With Quote
Forum Sponsor
  #16 (permalink)  
Old 05-18-2008
Registered User
 

Join Date: May 2008
Posts: 8
Problem found. I feel kind of foolish now but after so many people offered help and suggestions I feel you should see my error.

My strings.txt file had several blank lines in it prior to and after the string I wanted to search. These blank lines were what was throwing grep -f off.

So, I went from this:

<blank line>
<blank line>
/sample/string in/strings file/title.jsp
<blank line>
<blank line>

to just:

/sample/string in/strings file/title.jsp

and it resolved the problem. I can't say I fully understand it but it's working.

Sorry to have wasted peoples time in trying to resolve my problem but I appreciate it a great deal.

Thanks again for the time and help.

upstate boy
Reply With Quote
  #17 (permalink)  
Old 05-18-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,127
The blank line matches any line, so that's why you were getting so many matches.
Reply With Quote
Google UNIX.COM
Reply

Tags
grep, grep recursive, recursive grep

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0