[NTLUG:Discuss] Quickest way to edit file?

Wayne Walker wwalker at bybent.com
Mon Jul 23 15:52:52 CDT 2007


On Mon, Jul 23, 2007 at 03:33:35PM -0500, David Stanaway wrote:
> Bah
> 
> the fastest is surely
> 
> sed -i /bad at address/d file
sed -i -e /^bad at address/d file

sed is Sweet :)  Very good for deleting lines in huge files.  I use sed when I need to extract a few hundred (thousand) lines from anything over 100 Meg.

-- 

Wayne Walker

www.unwiredbuyer.com - when you just can't be by the computer

wwalker at bybent.com                    Do you use Linux?!
http://www.bybent.com                 Get Counted!  http://counter.li.org/
Perl - http://www.perl.org/           Perl User Groups - http://www.pm.org/
Jabber:  wwalker at jabber.gnumber.com   AIM:     lwwalkerbybent
IRC:     wwalker on freenode.net



More information about the Discuss mailing list