sample code for bash scripting