Created
November 27, 2012 11:11
-
-
Save benwei/4153682 to your computer and use it in GitHub Desktop.
convert function to that.func (javascript)
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
// regexp | |
// convert | |
// function a (a1,a2) | |
// that.a = function (a1, a2) | |
cat jsfile.js | sed -e 's/^\([ \t]*\)function[ \t]*\([a-zA-Z]*\)(/\1that.\2 = function (/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment