amended example shell script