Sameer D. Sahasrabuddhe wrote:
This basically means that the start of your script is incorrect. Remove the first line. The first line should always be a "#!/bin/bash"
below is a script ... which has many lines as comments at the start. still it works.
#test.sh #it doesn;t matter how # many lines u write # as comments before start of the script. #!/bin/bash #!/bin/csh echo "HAPPY NEW YR"
this works but wonder in such case. ... which shell ll be invoked .... bash or csh?