Skip to content

Instantly share code, notes, and snippets.

@radusuciu
Created December 14, 2015 19:35
Show Gist options
  • Save radusuciu/0696b16ee322b8b99fcb to your computer and use it in GitHub Desktop.
Save radusuciu/0696b16ee322b8b99fcb to your computer and use it in GitHub Desktop.
#!/bin/bash
find ~ -type f -name "*.mzXML" -not -path "save-me"
echo delete me? \[y/n\]?
read yesno
if [[ $yesno == 'y' ]]; then
find ~ -type f -name "*.mzXML" -not -path "save-me" -delete
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment