Last active
September 19, 2020 07:13
-
-
Save htammen/25ed78da4df5bc50ac0025fafb4ea9dd to your computer and use it in GitHub Desktop.
linux 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
# find all README.md files in a folder hierarchy but exclude all node_modules folders | |
find . -path "**/node_modules" -prune -o -name "README.md" -print | |
# like before but also find a specific keyworkd, here "mklink" in the README.md files | |
find . -path "**/node_modules" -prune -o -name "README.md" -print -exec grep -Hni "mklink" {} \; | |
# show all files in a folder in list view | |
ls -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment