Created
August 23, 2023 11:14
-
-
Save jauhari/e7601eff51e66a50d45ad63c5f0862d4 to your computer and use it in GitHub Desktop.
Find and Delete with the Asterik Command Line on LINUX/UNIX/MacOS
This file contains hidden or 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
#use this code on current folder and sub folder | |
find -name "*.ico" -mtime +7 -exec rm -f {} \; | |
#or use this one on current folder and sub folder | |
find -name "*.ico" -name "*.avi" -mtime +7 -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment