-
-
Save andreisfedotov/98517af07676c0e84f64c26f0df735b6 to your computer and use it in GitHub Desktop.
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
find "$1" -maxdepth 1 -type f -iname "*$2*" #поиск файлов, в имени которых есть введенные символы | |
rm -f `find "$1" ! -name "*$2*" -type f -exec rm -f {} \;` #удаление файлов, которые не содержат введенные символы |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment