I'm stuck with a wired problem.My bash scripts are not working now.It worked previously.I don't know why.Interestingly the commands on the script work when I enter it directly on the terminal.
This a sample line from my script
On the terminal when I run
sh ./check.sh, the output is
: command not found ls
The output is similar for other commands also,except
echo for which is showing the correct output.
I request every kind people to help me.