Created
April 13, 2019 02:12
-
-
Save sks147/33a4554e9b4ff70d88c8dfb002f5f75f to your computer and use it in GitHub Desktop.
Command to delete ".exe" files recursively from current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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