Bash Script
A script is a text file full of commands. Bash runs them one by one, from top to bottom, just as if you typed them.
Scripts usually end in .sh and start with a shebang. Run one with bash name.sh, or make it executable and use ./name.sh.
A small script
Save this as greet.sh:
#!/bin/bash
name="World"
count=3
echo "Hello, $name!"
echo "You have $count new messages"
Run it:
bash greet.sh
Hello, World!
You have 3 new messages