Unix shell sample code