Path: utzoo!utgpu!water!watmath!clyde!cbosgd!osu-cis!tut!lvc
From: lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani)
Newsgroups: comp.unix.questions
Subject: Re: Finding Files
Summary: don't need grep
Message-ID: <3069@tut.cis.ohio-state.edu>
Date: 10 Dec 87 05:46:58 GMT
References: <205700003@prism> <4441@ihlpg.ATT.COM>
Organization: Ohio State Computer & Info Science
Lines: 19

In article <4441@ihlpg.ATT.COM>, bamford@ihlpg.ATT.COM
	(Harold E. Bamford) writes:
> 
> At the risk of being one of thousands with an alternative:
> 
> 	alias f="find . -type f -print"
> 
> If I want to find a particular file:    f | grep filename
> 

Try the -name option of find:

	find dir -name '*filename*' -a -print

this tends to be faster.

-- 
	Larry Cipriani AT&T Network Systems at
	cbosgd!osu-cis!tut!lvc Ohio State University