« Return to Thread: Simple shell script not working

Simple shell script not working

by zip184 :: Rate this Message:

Reply to Author | View in Thread

This is the 2-line shell script I'm trying to run:


#! /bin/sh

touch test.txt


The privledges are set to 777

I get the error output line:  " bash: $'\r': command not found "
for each command I put in the script, including cd, touch, ls, etc.  Echo is the only one that works for some reason.  Anybody have any ideas on how to fix this?

 « Return to Thread: Simple shell script not working