Last active
July 29, 2017 14:52
-
-
Save SethosII/c99d75de929007b8c09012be12df663f to your computer and use it in GitHub Desktop.
Ansible has the option to create backup files when something is changed. All of them have a suffix with the same structure.
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
# the regex is basically everything ending with: .arbitrarynumber.YYYY-MM-DD@hh:mm:ss~ | |
sudo find / -regextype egrep -regex '.*.[0-9]*.[0-9]{4}-[0-9]{2}-[0-9]{2}@[0-9]{2}:[0-9]{2}:[0-9]{2}~' | xargs -n 1 rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment