Shell Scripts are essentially equivalent to batch files (although much more awesome).
following sort of syntax:
And make sure you chmod +x the file to make it executable, extensions are irrelevant but .sh is the standard.
Run the script with ./myscript.sh from a terminal