search speed

D'Arcy J.M. Cain darcy at druid.net
Fri Jan 30 09:05:58 EST 2009


On Fri, 30 Jan 2009 15:46:33 +0200
Justin Wyer <justinwyer at gmail.com> wrote:
> $ find <path_to_dirs_containing_files> -name "*" -exec grep -nH "LF01" {} \;
> | cut -d ":" -f 1 | sort | uniq

I know this isn't a Unix group but please allow me to suggest instead;

  $ grep -lR LF01 <path_to_dirs_containing_files>

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list