Video answer: How to write a bash script
Top best answers to the question «Bash script how»
To create a bash script, you place #!/bin/bash at the top of the file. To execute the script from the current directory, you can run ./scriptname and pass any parameters you wish. When the shell executes a script, it finds the #!/path/to/interpreter .
Video answer: Bash scripting full course 3 hours