christiniaroelin
Programmer
Hi,
i need to select only the lines that start with "echo" and within those lines delete anything after "=" including the "=" also.
for eg:
echo $ES_LD_END_HR='16'
should be
echo $ES_LD_END_HR
i have a sed statement as
sed '/^echo\(.*\)=\(.*\)/echo\2/g'< in.dat > out.dat
but gives an error as sed function not recognised.
Could anyone help provide insights on this please.
Thank You,
christinia.
i need to select only the lines that start with "echo" and within those lines delete anything after "=" including the "=" also.
for eg:
echo $ES_LD_END_HR='16'
should be
echo $ES_LD_END_HR
i have a sed statement as
sed '/^echo\(.*\)=\(.*\)/echo\2/g'< in.dat > out.dat
but gives an error as sed function not recognised.
Could anyone help provide insights on this please.
Thank You,
christinia.