Error “bash: $’\r’: command not found

Try running dos2unix my_file