I have my bash code.
#!/bin/bash
read message
echo $message | tr "A-Za-z" "N-ZA-Mn-za-m"
if [ $message == false ]; then
fi
done
It works but I get syntax errors after,
rot13.sh: line 6: syntax error near unexpected token `fi'
rot13.sh: line 6: `fi'
Now I don't expect a solution in this thread but I'm just wondering where should I go and that should I do when I get these errors? Is there any commands I can use in the compiler or documentation/checklists that check for syntax errors.
I am new to bash code so being able to check and understand there syntax error would help a lot.
Thank you.
$message? (Spoiler: it doesn't.)