Perhaps:

grep foo *.* -l 

May differ depending on your version of *nix try the man pages.

HTH

Kola

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 04 May 2005 14:33
> To: CF-Talk
> Subject: OT-Unix grep
> 
> Okay kind of an odd thing here. I am trying to use grep to search through
> files for a string. I and hen just wnat the file name that there was a
> match for, then I am writing the reuslts to CF web page. Now I can eaisly
> grep the string but I am simpky want the file name not the actual line for
> the string found. so Right now I am doing the following:
> 
> grep foo *.*
> 
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205515
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to