Skip to content

Instantly share code, notes, and snippets.

@nicoxxxcox
Created March 20, 2021 13:43
Show Gist options
  • Save nicoxxxcox/f4b41e55a0421b1589a496d5320ca1a4 to your computer and use it in GitHub Desktop.
Save nicoxxxcox/f4b41e55a0421b1589a496d5320ca1a4 to your computer and use it in GitHub Desktop.
Some basic bash commands
#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