in reply to Find file that contains "....." (command in Unix)
Or if you have a modernish grep:find . -type f -exec grep "\.\.\.\.\." /dev/null {} \;
grep -r "\.\.\.\.\." .
Update: The OP requested the file name, the solutions print all lines containin the pattern. This does what the OP wants:
find . -type f -exec grep -q "\.\.\.\.\." {} \; -exec echo 'Found {}' + \;
CU
Robartes-
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Find file that contains "....." (command in Unix)
by parv (Parson) on Mar 28, 2003 at 10:46 UTC | |
Re: Re: Find file that contains "....." (command in Unix)
by waswas-fng (Curate) on Mar 28, 2003 at 15:45 UTC |