Any idea of what the problem could be?
My code is:
#!/bin/bash while : do echo \"Press [CTRL+C] to stop..\" sleep 1 done
Saved it a
Edit your code in any linux environment then you won't face this problem. If edit in windows notepad any space take it as ^M.