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

brucelists at bellsouth.net brucelists at bellsouth.net
Fri Jul 29 08:58:56 EDT 2005


I took it as a joke, and maybe a gentle rtfm nudge. Wouldn't fdisk /mba hack up your master boot record? fdisk /mbr will repair, I believe fdisk /mba will do particularly bad things. Erm, I did not hustle off to try it out, though.

> 
> From: Geoffrey <esoteric at 3times25.net>
> Date: 2005/07/29 Fri AM 08:14:15 EDT
> To: Atlanta Linux Enthusiasts <ale at ale.org>
> Subject: Re: [ale] Flat file post-processing - drop records based on	text
>  string
> 
> James P. Kinney III wrote:
> > On Thu, 2005-07-28 at 17:06 -0400, Geoffrey wrote:
> > 
> >>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;}'
> > 
> > 
> > windows: fdisk /mba
> 
> ??????
> 
> -- 
> Until later, Geoffrey
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 




More information about the Ale mailing list