Last active
July 12, 2022 22:41
-
-
Save passos/5959d9aed9eb556b0ff779d7209b7ffd to your computer and use it in GitHub Desktop.
aliases for find some in code
This file contains hidden or 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
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