updated shell script for linux