How to create bash script
https://linuxhint.com/30_bash_script_examples/
Create bash script file
touch file.sh
Fill the file
#!/bin/bash
echo "Hello World"
Execute script
bash file.sh
or
chmod a+x file.sh
$ ./file.sh
Last updated
Was this helpful?
https://linuxhint.com/30_bash_script_examples/
Create bash script file
touch file.sh
Fill the file
#!/bin/bash
echo "Hello World"
Execute script
bash file.sh
or
chmod a+x file.sh
$ ./file.sh
Last updated
Was this helpful?