| Bash scripting Hi
I am tryinf to something relatively simple but seem unable to get this script working. I simply want to replace the number associated with a certain work. I am using sed. However when I incorporate the working sed command into my script it does not work any longer.
#!/bin/sh
for i in `seq 0 9`
do
x=24
y=1000
Result=`expr $i + $y`
c="LIPID "$i
d="LIPID "$Result
echo $c
echo $d
e="'s/"$c"/"$d"/g' MCdemo.txt"
f="sed "$e
$f
done
This is the error:
sed: -e expression #1, char 1: unknown command: `''
Could someone please point out what is going wrong... |