[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: Fri, 29 Jul 2005 9:01:27 -0400 -->
- <!--x-from-r13: oehpryvfgf ng oryyfbhgu.arg (oehpryvfgf ng oryyfbhgu.arg) -->
- <!--x-message-id: 20050729130127.OBUE4854.ibm57aec.bellsouth.net@mail.bellsouth.net -->
- <!--x-subject: [ale] Flat file post-processing - drop records based on text -->
- <li><em>date</em>: Fri, 29 Jul 2005 9:01:27 -0400</li>
- <li><em>from</em>: brucelists at bellsouth.net (brucelists at bellsouth.net)</li>
- <li><em>subject</em>: [ale] Flat file post-processing - drop records based on text</li>
>
> From: Geoffrey <esoteric at 3times25.net>
> Date: 2005/07/28 Thu PM 05:06:53 EDT
> To: Atlanta Linux Enthusiasts <ale at ale.org>
> Subject: Re: [ale] Flat file post-processing - drop records based on text
> string
>
> brucelists at bellsouth.net wrote:
> > Hey - I've got a basic question. I have a huge text file, and am
> > looking to drop records based on what is found in the text string. If
> > a record has the text "rs232", "slip", "decnet" or "VA-1" anywhere in
> > it, I want to drop it. If not, I want to keep the record.
> >
> > Is there a simple string I can use to do this? I'm not sure if I just
> > want to run a search string, or go Perl - but either way, I have a
> > huge filebut most of needs to be dropped.
>
> perl:
>
> while (<>) { /rs232|slip|decnet|VA-1/ && next; print; }
>
> awk:
>
> '/rs232|slip|decnet|VA-1/ {next}; {print $0;}'
>
> --
> Until later, Geoffrey
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00429.html">[ale] Flat file post-processing - drop records based on text</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00431.html">[ale] Flat file post-processing - drop records based on text</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00429.html">[ale] Flat file post-processing - drop records based on text</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00434.html">[ale] https being redirected to http</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00430"><strong>Date</strong></a></li>
<li><a href="threads.html#00430"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>