I have a problem with my code. I have a lot of .dat files. In these files I want to change one expression to another.
My code is this:
for i in V13_*.dat;
do let a=a+1;
sed -i 's/Slice: Z=0.00635/V13_'$a'/' V13_*.dat;
My Problem is that every expression is changed to V13_35 and not to
I think I have to submit the a into the sed-function, because echo $a shows
Someone get it?
Can you help me?
Tanks a lot.