Skip to content

Instantly share code, notes, and snippets.

@sks147
Created April 13, 2019 02:12
Show Gist options
  • Save sks147/33a4554e9b4ff70d88c8dfb002f5f75f to your computer and use it in GitHub Desktop.
Save sks147/33a4554e9b4ff70d88c8dfb002f5f75f to your computer and use it in GitHub Desktop.
Command to delete ".exe" files recursively from current directory
grep -rl ".exe" . | sed 's/./\\&/g' | xargs rm --
# https://unix.stackexchange.com/a/55990/319910
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment