[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] need a simple shell script
- Subject: [ale] need a simple shell script
- From: jbaldwin at antinode.net (James Baldwin)
- Date: Mon Mar 14 17:20:39 2005
- In-reply-to: <[email protected]>
- References: <[email protected]>
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 at 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