Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utai.UUCP Path: utzoo!utcsri!utai!gkloker From: gkloker@utai.UUCP (Geoff Loker) Newsgroups: net.unix,net.unix-wizards,net.wanted Subject: Re: Need unix command file HELP! Message-ID: <1320@utai.UUCP> Date: Sun, 16-Feb-86 14:58:36 EST Article-I.D.: utai.1320 Posted: Sun Feb 16 14:58:36 1986 Date-Received: Sun, 16-Feb-86 15:42:16 EST References: <245@aero.ARPA> <587@smeagol.UUCP> <259@hadron.UUCP> Reply-To: gkloker@utai.UUCP (Geoff Loker) Organization: CSRI, University of Toronto Lines: 27 Summary: In article <259@hadron.UUCP> jsdy@hadron.UUCP (Joseph S. D. Yao) writes: >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: > I don't know if this is any quicker than your script file suggestion for finding file names with the string (we don't have ksh), but the grep family does have an option to print out only the name(s) of file(s) that contain the match-string. Try: find / -exec fgrep -l this-is-the-string '{}' \; -- Geoff Loker Department of Computer Science University of Toronto Toronto, ON M5S 1A4 USENET: {ihnp4 decwrl utzoo uw-beaver}!utcsri!utai!gkloker CSNET: gkloker@toronto ARPANET: gkloker.toronto@csnet-relay