QN: Linux: Shell Scripting

I tried to run a few of my scripts on a linux machine, and kept getting weird errors like

“: No such file or directory”

I finally figured out that the files were in DOS formatted line separation (\n\r) which was confusing the shell. A quick

dos2unix *.py

fixed things.

Comments are closed.