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
grep is not working, please find out the problem kittusri9 Shell Programming and Scripting 3 05-07-2008 07:32 AM
grep, find or awk? netrom UNIX for Dummies Questions & Answers 4 04-09-2008 02:03 PM
find then grep flame_eagle Shell Programming and Scripting 7 03-13-2008 08:19 AM
find and grep sarwan High Level Programming 4 04-10-2006 04:05 AM
find & grep Anika UNIX for Dummies Questions & Answers 11 02-01-2001 09:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2006
Registered User
 

Join Date: Mar 2006
Posts: 14
FIND/GREP problem

When I enter the command below grep appears to be returning a file it shouldn't.

find . -name "*.*" -exec grep "testing" {} /dev/null \;
.ps3Mailfile
./SSI.ksh: # create TECHOUT dummy for test for testing purposes
./ftprimi1.ksh:# before running job in prod... change FTP to go to rimi instead of rad box(testing)
./pharm_alert.ksh:# send mail for testing, but not in prod

The file, ops3Mailfile does not contain the search string testing, why does this command continually pull this file? If I rerun the above using -type option instead of -name for the find command then the proper files are returned. Also, if you look at the path returned for this file it lists .ps3MailFile instead of ./ops3MailFile as one would expect.

Anyone have any ideas why this file is returned? If you use grep on this directory without the find then the proper list of files is returned.

Thanks

D
Reply With Quote
Forum Sponsor
  #2  
Old 11-13-2006
Registered User
 

Join Date: Mar 2006
Posts: 14
P.S. the smiley face should be a colon an an O
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0