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,375
    Likes Received:
    389
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice