Created
October 22, 2009 10:20
-
-
Save fcamel/215881 to your computer and use it in GitHub Desktop.
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
19 function gp() { | |
20 if [ "$1" = "-p" ]; then | |
21 shift | |
22 \ls *.py */*.py | perl -ne 'print $_ if !($_ =~ /.*_test\.py/)' | xargs grep -i --color $1 | |
23 elif [ "$1" = "-t" ]; then | |
24 shift | |
25 \ls *.py */*.py | perl -ne 'print $_ if $_ =~ /.*_test\.py/' | xargs grep -i --color $1 | |
26 else | |
27 g "$1" *.py */*.py | |
28 fi | |
29 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment