write a basic or complex linux shell script in bash