[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



-----Original Message-----
From: ale-bounces at ale.org [<a  rel="nofollow" href="mailto:ale-bounces";>mailto:ale-bounces</a> at ale.org] On Behalf Of Armsby John-G16665
Sent: Monday, March 14, 2005 4:52 PM
To: 'Atlanta Linux Enthusiasts'
Subject: [ale] need a simple shell script


Guys,
 
I am embarassed to admit my ignorance but a need a shell script to do the following.
 
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.
 
 
i have bits of it but a unable to string the pieces together:
 
 
this script find files recursively and prints filename | time stamp info to a file:
 
find vault_dir -type f -follow -exec ls -l {} \; | awk '{printf&quot;%s|%s %s %s\n&quot;,$9, $6, $7, $8}' &gt; /home/dc/Log_dir
/vault.log      
 
 
 
This script recursively find files with '04' in them.....
 
find ExternalDocuments_dir -name *.html -exec grep -i 04 {} \;
 
 
I have looked around but have not found the glue to put all this stuff together...
 
John
 

-------------- next part --------------
An HTML attachment was scrubbed...



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00264" href="msg00264.html">[ale] need a simple shell script</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00260.html">[ale] need a simple shell script</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00262.html">[ale] need a simple shell script</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00274.html">[ale] need a simple shell script</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00264.html">[ale] need a simple shell script</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00261"><strong>Date</strong></a></li>
<li><a href="threads.html#00261"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>