Bash script is very nice and important if one is using Unix system. Planning on using bash scripts as much as posible, I would like to share a quick and easy example to start using it:
Create a shell call
Add the lines to the file:
Go to the folder contains the file. Type
Create a shell call
hello.sh
Add the lines to the file:
#!/bin/bash
echo "Hello world!"
Go to the folder contains the file. Type
bash hello.sh
. The echo command will print out Hello world!
your terminal
Comments
Post a Comment