[NTLUG:Discuss] Quickest way to edit file?

Lance Simmons simmons.lance at gmail.com
Mon Jul 23 10:03:10 CDT 2007


I have a text file with several hundred lines, each with a single
email address.  Occasionally I want to add or delete an address.
Adding is easy:

   echo 'user at xyz.org' >> filename

What's the easiest way to delete a single line in a file?  I've been
doing it easily enough using vi, but can I do it with a single
command?

-- 
Lance Simmons



More information about the Discuss mailing list