Skip to content

Instantly share code, notes, and snippets.

@htammen
Last active September 19, 2020 07:13
Show Gist options
  • Save htammen/25ed78da4df5bc50ac0025fafb4ea9dd to your computer and use it in GitHub Desktop.
Save htammen/25ed78da4df5bc50ac0025fafb4ea9dd to your computer and use it in GitHub Desktop.
linux commands
# 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