In my file , i have to replace all the 'Volume' to 'Grain_'. This is a part of an automation script written in Matlab.
I tried to use the following:
sed -i -e 's/Volume/GRAIN_/g' 3C1_N103_Gmsh2.inp
I created a string in matlab like this
str = ['sed -i -e ','''','s/Volume/GRAIN_/g','''',' ','3C1_N103_Gmsh2.inp'];
I tried with dos and system commands but none of them worked
dos(str)
system(str)
I am on Windows.
I got the following error :
'sed' is not recognized as an internal or external command, operable program or batch file. Any suggestions on how I do this ?