Skip to content

Instantly share code, notes, and snippets.

@passos
Last active July 12, 2022 22:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save passos/5959d9aed9eb556b0ff779d7209b7ffd to your computer and use it in GitHub Desktop.
Save passos/5959d9aed9eb556b0ff779d7209b7ffd to your computer and use it in GitHub Desktop.
aliases for find some in code
alias ll='ls -GlA'
alias la='ls -GlA'
alias findall=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -print0 | xargs -0 grep --color=auto'
alias findpy=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a \( -name '\''*.py'\'' -or -name '\''*.templ'\'' \) -print0 | xargs -0 grep --color=auto'
alias findjs=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -name '\''*.js'\'' -print0 | xargs -0 grep --color=auto'
alias findc=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a \( -name '\''*.c'\'' -or -name '\''*.h'\'' -or -name '\''*.cpp'\'' -or -name '\''*.cxx'\'' \) -print0 | xargs -0 grep --color=auto'
alias findgo=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -name '\''*.go'\'' -print0 | xargs -0 grep --color=auto'
alias findgradle='find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a -name '\''*.gradle'\'' -print0 | xargs -0 grep --color=auto'
alias findjava=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -name '\''*.java'\'' -print0 | xargs -0 grep --color=auto'
alias findxml=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -name '\''*.xml'\'' -print0 | xargs -0 grep --color=auto'
alias findjx=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a \( -name '\''*.java'\'' -or -name '\''*.xml'\'' \) -print0 | xargs -0 grep --color=auto'
alias findscala=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -name '\''*.scala'\'' -print0 | xargs -0 grep --color=auto'
alias findpl=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a \( -name '\''*.pl'\'' -or -name '\''*.pm'\'' -or -name '\''*.cgi'\'' -or -name '\''*.templ'\'' \) -print0 | xargs -0 grep --color=auto'
alias findwx=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a \( -name '\''*.wxml'\'' -or -name '\''*.wxss'\'' \) -print0 | xargs -0 grep --color=auto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment