[ale] need a simple shell script

James Baldwin jbaldwin at antinode.net
Mon Mar 14 17:20:39 EST 2005


On 14 Mar 2005, at 16:52, Armsby John-G16665 wrote:

> 1.? find *.html files (recurse) in a particular folder. pipe it to:
> 2.? grep -i 'verified'?? pipe it to:
> 3.? grep 04
> 4.? Print the path and filename of the file which meets criteria 1,2,3.

for i in `find <directory> -name \*.html \;`; do grep -i 'verified' $i 
&& grep 04 $i && echo $i; done
---
James Baldwin
hkp://pgp.mit.edu/jbaldwin@antinode.net
"Syntatic sugar causes cancer of the semicolon."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part




More information about the Ale mailing list