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

non starter

Discussion in 'Shell Script' started by vukman, Aug 28, 2010.

  1. vukman

    vukman New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    hello everybody. i am attempting to use a script which returns the error:
    bash: ./script.sh: /bin/bsh^M: bad interpreter: No such file or directory
    upon "chmod"ing and executing. the code is:

    grep 'Time : ' rob_onholiday298.gout | awk '{print $4}' > temp1

    grep 'Total energy ' rob_onholiday298.gout | awk '{print $5}' > temp2

    grep 'Temperature ' rob_onholiday298.gout | awk '{print $5}' > temp3

    paste temp1 temp2 >> Energy-time3.txt

    paste temp1 temp3 >> Temperature-time3.txt

    rm temp1 temp2 temp3the error message seems tro suggest that the shebang is wrong, but i have tried several iterations (usr/bin/bsh etc.) and its not happy. incidentally, inputting the lines one by one does what i expect
    hopefully you can help

Share This Page