modify the script to correctly use in linux