Hi,
It looks like you have copied it in such a way that it is no longer plain text - this is what the “^M” at the end signifies. Unfortunately this is becoming common in files sent and copied via email. They will also be present throughout the file, not just in the first line, so Sean’s suggestion probably won’t be enough to fix it.
You will need to convert it to plain text and remove all the windows-style end-of-line characters (what is reported at “^M” here but you will not be able to see them in a typical editor). I recommend using a plain-text-only editor and then doing a cut-and-paste from your current file into a new one.
Once you’ve done this it should work OK, after the chmod command.
Let us know how you get on.
All the best,
Mark
> On 7 May 2019, at 02:59, Catherine Mewborn <[log in to unmask]> wrote:
>
> Thank you for the quick reply. I was, in fact, not running them as two command lines. Still encountering some problems. I have the ec_plot.sh.txt file stored in my home directory (~). I am running the command from another directory where the .ecclog file is stored (named ABELD001_eddy.ecclog). See below for the two commands I entered:
>
> [cmewborn@psygtfs1 MR]$ chmod 755 ~/ec_plot.sh.txt
> [cmewborn@psygtfs1 MR]$ ~/ec_plot.sh.txt ABELD001_eddy.ecclog
>
> When I do this, I get an error message which says:
> -bash: /home/millerlab/cmewborn/ec_plot.sh.txt: /bin/sh^M: bad interpreter: No such file or directory
>
> Any suggestions for what I should try next?
>
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|