need help regarding shell script

saragu's Avatar
Newbie Member
I want to know whether the below code is correct or not to convert .mat files to .c and .c files to .so files

echo "Enter file name:\c"
read flname

if grep "$flname.mat" FSEIC then
gen_tp4 $flname.mat
if grep $flname.c FSEIC then
rtt_make $flname.c > SOFILES
else echo "compilation error"
else echo "file not found"
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Duplicate of shell scripting. Thread closed.