Last active
August 3, 2019 16:39
-
-
Save rponte/7546377 to your computer and use it in GitHub Desktop.
VRaptor LinkTo Fix on Linux and MacOSX
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
find -name "*.jsp" | xargs sed -i "s:\\]\[:,:g" && find -name "*.jsp" | xargs sed -i "s:\(linkTo\[[a-zA-Z0-9]*\]\.[a-zA-Z0-9]*\)\[\(.*\)\]:\1(\2):" |
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
find . -name "*.jsp" | xargs sed -i '' "s:\\]\[:,:g" && find . -name "*.jsp" | xargs sed -i '' "s:\(linkTo\[[a-zA-Z0-9]*\]\.[a-zA-Z0-9]*\)\[\(.*\)\]:\1(\2):" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More informations,
http://stackoverflow.com/questions/9704020/recursive-search-and-replace-on-mac-and-linux