Advertisement
Guest User

Untitled

a guest
Jul 26th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. ica_file=$(find ~/Downloads -maxdepth 1 -name "*.ica" -print0 | xargs -r -0 ls -1 -t | head -1)
  4. if [[ -f ${ica_file} ]]; then
  5.   echo "Processing .. ${ica_file}"
  6.   sed -i '' 's/ClientAudio=On/ClientAudio=Off/' ${ica_file}
  7.   open ${ica_file}
  8. fi
  9.  
  10. kill $(ps -p $(ps -p $PPID -o ppid=) -o ppid=)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement