1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need help regarding shell script

Discussion in 'Programming' started by saragu, Oct 23, 2008.

Thread Status:
Not open for further replies.
  1. saragu

    saragu New Member

    Joined:
    Oct 23, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page