Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   need help regarding shell script (http://www.go4expert.com/forums/help-regarding-shell-script-t14714/)

saragu 23Oct2008 16:33

need help regarding shell script
 
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

shabbir 23Oct2008 18:44

Re: need help regarding shell script
 
Duplicate of shell scripting. Thread closed.


All times are GMT +5.5. The time now is 09:40.