Created
January 31, 2014 15:49
-
-
Save egulhan/8734664 to your computer and use it in GitHub Desktop.
how to execute sed command from just files result from grep command
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
grep -rl "'filter'=>FrontEnd::createPhInputField" * | grep -v ".svn" | xargs -l sed -i "s/filter'=>FrontEnd::createPhInputField(\(.*\),\(.*\))/filter'=>FrontEnd::createPhInputField(\1,\2,\$filtersForm)/g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment