[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: Tue, 11 Oct 2005 11:29:58 -0400 (GMT-04:00) -->
- <!--x-from-r13: oxehtre ng zvaqfcevat.pbz (Pbo Yehtre) -->
- <!--x-message-id: 5454582.1129044598963.JavaMail.root@mswamui-valley.atl.sa.earthlink.net -->
- <!--x-subject: [ale] Bash script question -->
- <li><em>date</em>: Tue, 11 Oct 2005 11:29:58 -0400 (GMT-04:00)</li>
- <li><em>from</em>: bkruger at mindspring.com (Bob Kruger)</li>
- <li><em>subject</em>: [ale] Bash script question</li>
I need to parse some simple text files. I would like to do this in the BASH shell and not have to invoke Perl, AWK, etc. I did the same a couple of years ago, but lost the code.
If I have a text file that has, for example, 6 lines, and I want to parse field in the 4th line, what can I run from the BASH shell to print out only the 4th line?
V/r
Bob
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00238" href="msg00238.html">[ale] Bash script question</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="msg00236.html">[ale] Enterprise Linux's</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00238.html">[ale] Bash script question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00251.html">[ale] ALE CENTRAL for Thurs., Oct. 13, 7:30pm</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00238.html">[ale] Bash script question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00237"><strong>Date</strong></a></li>
<li><a href="threads.html#00237"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>