I'm wrote small bash shell script named hello.sh, that will ask the user to enter his name and again prints the user entered name.
#!/bin/bash
echo "Enter your name : "
read uname
echo "Hello " $uname ", Welcome to shell scripting."
when I run the script, ./hello.sh
it won't wait for user input and gives me the below output
./hello.sh: line 2: $'\r': command not found
': not a valid identifiere 3: read: `uname
Hello , Welcome to shell scripting.
Please help on this.