If you are searching the filenames:
'ls | grep searchstring' (if only the top level directory), otherwise 'find . -type f | grep searchstring' to traverse the whole directory.
If you need to search the *contents* of the files:
'find . -type f | xargs grep searchstring'
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dean Eshleman
Sent: Thursday, December 03, 2015 2:19 PM
To: Midrange-L Mailing list xxxx
Subject: GREP doesn't work
I'm trying to search some files on the IFS for a string and it doesn't seem to work. Here is what I'm doing.
Grep 'searchstring' *
When I do this, it just returns to the command prompt. No errors listed. I know there are files in that directory that contain my search string. What am I doing wrong?
We are on 7.1.
Software Development Architect
1110 North Main Street
PO Box 483
Goshen, IN 46527
Phone: (574) 533-9515 x3528
Confidentiality Notice: This information is intended only for the individual or entity named. If you are not the intended recipient, do not use or disclose this information. If you received this e-mail in error, please delete or otherwise destroy it and contact us at (800) 348-7468 so we can take steps to avoid such transmission errors in the future. Thank you.