Created
March 20, 2021 13:43
-
-
Save nicoxxxcox/f4b41e55a0421b1589a496d5320ca1a4 to your computer and use it in GitHub Desktop.
Some basic bash commands
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
#rechercher dans le dossier courrant tous les fichier avec l'extension .pdf et les supprimer | |
find . -name "*.pdf" -exec rm {} \; | |
#recherche dans les fichiers de façon récusive les lignes commencant par l'expression "import" dans le dosser "/foo" | |
grep -r --color -n -i "^import" /foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment