SUMMARY : HELP with SED

From: g@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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:07 EDT