[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Mon Mar 14 17:18:19 2005 -->
- <!--x-from-r13: Xbua.Oezfol ng zbgbebyn.pbz (Oezfol Xbua-U16665) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] need a simple shell script -->
- <li><em>date</em>: Mon Mar 14 17:18:19 2005</li>
- <li><em>from</em>: John.Armsby at motorola.com (Armsby John-G16665)</li>
- <li><em>subject</em>: [ale] need a simple shell script</li>
-----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"%s|%s %s %s\n",$9, $6, $7, $8}' > /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>