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