Last active
March 2, 2018 21:27
-
-
Save afbio/d43125ff86a4e0283941d191a6ade809 to your computer and use it in GitHub Desktop.
Listing and filtering files in a directory using find command
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
#listar arquivos: | |
find . -type f | |
#listar diferentes do padrão: | |
find . -type f -not -name "*cteproc.xml" | |
#Contar colocando na frente um: | |
find . -type f | wc -l | |
find . -type f -not -name "*cteproc.xml" | wc -l | |
#excluir os diferentes do padrão: | |
find . -type f -not -name "*cteproc.xml" -delete | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment