SUMMARY : HELP with SED

From: <g_at_ry>
Date: Mon Feb 27 2006 - 08:55:44 EST
Thanks to all GURUS who have helped me with SED.. Here is the summay :

Task : find a pattern in a file and put a comment on that line, then insert
a new line

Solution :

# nawk '{print;} $1 == "D{MTAHost}[127.0.0.1]" {print"D{MTAHost}[
mailserver.com]"}' submit.cf | sed
's/^D{MTAHost}\[127\.0\.0\.1\]/\#D{MTAHost}\[127\.0\.0\.1\]/'

All the best !!!
Gary
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Feb 27 08:56:21 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:56 EST