hey , i am using shell script to change multiple lines in files in the current directory, when i am runing the script which is present in the same directory changes are being made in the script also.
also when i am trying to make changes in more the one line then it is not able to do it i.e it is not returning the prompt.
code which i am using is
for file in *
do
echo "Replacing on : $file"
sed 's/CONVERTED_REC_STATS = /CONVERTED_REC_STATS = UNK:/g';'s/REJECTED_REC_STATS = /REJECTED_REC_STATS = UNK:/g' $file > $file.tmp
mv $file.tmp $file
echo "Replacement done on : $file"
done
~
please help
thanks in advance