hi all
I have the following sed command in my script
sed -i "/$PARAM/s/$OLD/$BEW/g" $FILE
this sed command replace the OLD value to new in the line that PARAMETER exsit
but I need also to ignore the "#" lines
how it can possible to change the sed syntax in order to ignore "#" lines?
the solution must be only with sed not by perl!

perl -pe "next if /^#/; s/$OLD/$NEW/ if /$PARAM/") – grawity May 27 '10 at 13:06