Need unix command file HELP!

Paul Lew lew at gsg.UUCP
Tue Feb 18 01:21:42 AEST 1986


>All the folk who are responding that the way to get the file names
>of files containing a particular string are kind of forgetting that
>the grep family does  n o t  automatically print out file names.
>This:
>
>find / -exec fgrep this-is-the-string '{}' \;
>
>will give a file full of lines containing this-is-the-string.  Try:
>

	Notice that if you do grep on more than one files, file
	names will be displayed.  A simple solution to the problem
	is to use:

	 find / -exec fgrep this-is-the-string /dev/null '{}' \;

	and YOU DO NOT HAVE TO WRITE ANY SCRIPT to do so.
-- 
----------------------------------------------------------------------
Paul S. Lew				decvax!gsg!lew		(UUCP)

General Systems Group
51 Main Street, Salem, NH  03079	(603) 893-1000
----------------------------------------------------------------------



More information about the Comp.unix mailing list