Bash Scripting help
Bash Scripting help
Linux appears content executing the script despite a flawed shebang. Ensure the line starts with #!/bin/bash without extra spaces or incorrect formatting.
Add unix2dos and Dos2unix during your Linux setup. Execute Dos2unix with the full path to test1 if it isn’t in the same folder. This will transform Windows line endings into Linux ones, ensuring \r\n becomes \n