SHARE
TWEET

Untitled

a guest Oct 9th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func_grep () {
  2.     func_name="$1"
  3.     shift
  4.     alts=1
  5.     if [[ $func_name =~ "^\(.*\)$" ]]
  6.     then
  7.         alts=2
  8.     fi
  9.     pcregrep -Mo "${func_name}\([^{]+(\{([^{}]++|(?${alts}))*\})" $@
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top