need help regarding shell script

Newbie Member
23Oct2008,16:33   #1
saragu's Avatar
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"
fi
Go4Expert Founder
23Oct2008,18:44   #2
shabbir's Avatar
Duplicate of shell scripting. Thread closed.