shell script runner software for linux 1

shell script runner software for linux

#!/bin/bash
echo "bye"

Here is what the above code is Doing:
1. It’s creating a file called “bye.sh”
2. It’s adding the line “#!/bin/bash” to the file. This is called a shebang. It tells the computer that the file is a bash script.
3. It’s adding the line “echo “bye”” to the file. This is a bash command that prints the word “bye” to the screen.
4. It’s closing the file.

Now, let’s run the script.

$ bash bye.sh
bye

Similar Posts