Re: how de delete a ligne from a file

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

 



pe

On Wed, Jun 10, 2009 at 10:35 AM, Adel ESSAFI <adelessafi@xxxxxxxxx> wrote:
Hi list

Is there a method to delete a line from a file withoout editing it!

you can use perl

perl -p -i -e `s/Line in file you want to remove//' filename


but to remove a line you will always edit it.  Just not through a typical editor....
 

I have found how to do this with awk, but it is heavy!!


Thanks in advance


Adel


--
http://ilovefedora.blogspot.com/

--

PhD candidate in Computer Science
Address      
BP 108, Bureau de poste Tunis republique
1001 Tunis
Tunisia
tel: +216 97 246 706
fax: +216 71 391 166

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines



--
A grasshopper walks into a bar and the bartender says "Hey, we have a drink named after you." And the grasshopper says "Really, You have a drink named Murray?"
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux