[ale] Flat file post-processing - drop records based on text

brucelists at bellsouth.net brucelists at bellsouth.net
Fri Jul 29 09:00:23 EDT 2005


Bryon, that did the trick. Thanks!

> 
> From: Byron A Jeff <byron at cc.gatech.edu>
> Date: 2005/07/28 Thu AM 10:04:45 EDT
> To: Atlanta Linux Enthusiasts <ale at ale.org>
> Subject: Re: [ale] Flat file post-processing - drop records based on text
> 	string
> 
> On Thu, Jul 28, 2005 at 09:57:34AM -0400, 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.
> 
> Well the following egrep command should do the trick:
> 
> egrep -v "rs232|slip|decnet|VA-1" hugefile
> 
> Take a try with it and see how it works for you.
> 
> BAJ
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 




More information about the Ale mailing list