Hi all,
I'm kinda new to making bash scripts and I need some help. This is what I have:
However, when I go into terminal and do
sh test.sh (thats the name of the file), it'll give me:
: command not found
What is the name:
Then I type something, press enter and it'll reply with:
': not a valid identifierI_FILE
: command not found
: command not found
What am I doing wrong??
I'm kinda new to making bash scripts and I need some help. This is what I have:
Code:
#!/bin/bash
echo "What is the name:"
read HI_FILE
echo "$HI_FILE"
exit
However, when I go into terminal and do
sh test.sh (thats the name of the file), it'll give me:
: command not found
What is the name:
Then I type something, press enter and it'll reply with:
': not a valid identifierI_FILE
: command not found
: command not found
What am I doing wrong??