![]() |
|
|
|
|
|||||||
| 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 |
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 \; . ./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 . 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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
P.S. the smiley face should be a colon an an O
|
|||
| Google The UNIX and Linux Forums |