Skip to content

Instantly share code, notes, and snippets.

@phi-line
Last active July 31, 2018 21:54
Show Gist options
  • Save phi-line/74c7795e88c4f0c959a827a80e1bbb03 to your computer and use it in GitHub Desktop.
Save phi-line/74c7795e88c4f0c959a827a80e1bbb03 to your computer and use it in GitHub Desktop.
The most annoying command to find on the internet (find pattern and delete file)
`find cache -type f -exec grep -q "\<HTML\>" {} \; -delete`
// https://superuser.com/questions/585391/on-linux-how-can-i-find-all-files-that-contain-a-string-and-delete-them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment