|
replacing specific lines in a file
Hi there
I have a file which has the lines
Code:
# Serial number for hostid
EXP_SERIAL_=""
These lines could be anywhere in the file as far as line numbers go, I would like replace these two lines with
Code:
# Serial number for hostid $var1
EXP_SERIAL_$var1="$var2"
Is there a quick and simple way for me to do this ?
cheers
|