Basic Bash syntax...

First Bash

#!/bin/bash
echo "hello world"
1
2

save as test.sh and run by typing ./test.sh

Variable

#!/bin/bash
name=test
echo "$name contains ${#name} chars"
1
2
3
Last Updated: 1/14/2019, 12:15:15 AM