Re: [OTW] Grep vs SED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 10 May 2006 11:17:20 -0400, David Cary Hart
<Fedora@xxxxxxxxxxx> opined:
> On Tue, 9 May 2006 14:10:57 -0400 (EDT), "Robert P. J. Day"
> <rpjday@xxxxxxxxxxxxxx> opined:
> > On Tue, 9 May 2006, David Cary Hart wrote:
> > 
> > > (Off the Wall Question) I have been asked:
> > >
> > > Given a very large file.txt and a desire to remove a matching
> > > line:
> > >
> > > 	$ grep -v matching_line file.txt > file.txt.new
> > >
> > > or;
> > >
> > > 	$ sed '/matching_line _RegEx/d'  file.txt > file.txt.new
> > >
> > > Which method is more efficient or is it a tossup?
> > 
> > why not use "time" to find out?
> > 
> Simple. I did not think of doing so. Thanks - I think. -;)
> 
And the answer is grep -v to a larger extent than I expected.

-- 
Our DNSRBL - Eliminate Spam: http://www.TQMcube.com
Multi-RBL Check: http://www.TQMcube.com/rblcheck.php
The Dirty Dozen Spammiest Ranges: http://tqmcube.com/dirty12.php

Attachment: signature.asc
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux