Skip to content

Instantly share code, notes, and snippets.

@wolever
Created February 2, 2010 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolever/293160 to your computer and use it in GitHub Desktop.
Save wolever/293160 to your computer and use it in GitHub Desktop.
function rmext () {
find . -name "*.$1" | head
echo "Remove all .$1 files?"
read RESP
[[ "$RESP" =~ [nN] ]] && { echo "Abort."; return 1; }
find . -name "*.$1" -delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment