The Sed FAQ
pement.org
pement.org
for example:
Offending key in /home/user/.ssh/known_hosts:12
ed .ssh/known_hosts
12d
w
q
I wish there was a sed-like tool that used python or javascript regex syntax!
Also see a2p (awk to perl) and find2perl.
Single page text version here: http://www.pement.org/sed/sedfaq.txt
also reading the ed man page will help as well for newbies.
--------------------------
IEEE Std 1003.1-2008 :
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed...
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex...
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/se...