Skip to content

Instantly share code, notes, and snippets.

@g10guang
Last active February 14, 2019 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g10guang/1930207e9681fc08c454a3a05aa02ed6 to your computer and use it in GitHub Desktop.
Save g10guang/1930207e9681fc08c454a3a05aa02ed6 to your computer and use it in GitHub Desktop.
Frequency linux command

find command with exclude

find -name "*.js" -not -path "./directory/*" -not -path "*thrift_gen/*"

remove duplicate column:

awk '!seen[$0]++' filename

grep excluse dir:

grep --exclude-dir=vendor 'keywod' -irw *

git pull recursively:

find . -type d -depth 2 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment