[Techtalk] real life kewl text-processing and regexps samples wanted

John White John.White at Sun.COM
Sun Jan 11 19:25:32 EST 2004


I've picked up several good ones by subscribing to
Unix Hot Tips at www.ugu.com.

John


----- Original Message -----
From: Carla Schroder <carla at bratgrrl.com>
Date: Friday, January 9, 2004 6:03 pm
Subject: [Techtalk] real life kewl text-processing
and regexps samples wanted

> Howdy gang,
> 
> I'm putting together a sort of 'text and file
processing howto', 
> and I'm 
> looking for real-life useful examples. I'm not
sure what I'm going 
> to do with 
> it, either make a technical FAQ page on
linuxchix.org, or my own 
> web site, or 
> something. I might even propose it to tldp.org.
But wherever it 
> lands, it 
> first must be written.
> 
> I want anything and everything, what I like best
are useful 
> snippets that 
> actually do something. For example, Telsa posted
this on one of the 
> lists:
> man foo | col -b > filename
> 
> This strips the control characters and creates a
nice editable 
> file. How cool 
> is that? There's zillions of these kinds of things
that people use 
> all the 
> time. This is one I picked up on IRC from kathryn:
> 
> awk -F: '($3 >= 1050) &&($3 <=1060)  { print $1}'
/etc/passwd 
> 
> It's an easy way to select a range of lines and
print only the 
> fields that I 
> want.  It took me five minutes of tinkering to
figure out about a 
> dozen 
> different ways to use this command.
> 
> Putting together a page of live, working examples
is a superior 
> teaching tool. 
> 
> So let's have 'em, and don't be shy.
> 
> thanks!
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> Carla Schroder
> www.tuxcomputing.com
> this message brought to you
> by Libranet 2.8 and Kmail
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
> 



More information about the Techtalk mailing list