Last active
August 29, 2015 14:04
-
-
Save wagnerpinheiro/789d6218064d3c2cb0e5 to your computer and use it in GitHub Desktop.
extract methods from perl modules
This file contains 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
#!/bin/bash | |
# extract methods from perl modules | |
# author: Wagner Pinheiro | |
# public | |
grep "^sub .*.{" * | |
grep -h "^sub .*.{" * | sed 's/^sub /+/g' | sed 's/ {//g' | sed 's/{//g' | sed 's/\+\_/\-\_/g' | sort | |
# private | |
grep "^my .*.{" * | |
grep -h "^my .*.{" * | sed 's/^my /-/g' | sed 's/ \= sub {//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment