Skip to content

Instantly share code, notes, and snippets.

@egulhan
Created January 31, 2014 15:49
Show Gist options
  • Save egulhan/8734664 to your computer and use it in GitHub Desktop.
Save egulhan/8734664 to your computer and use it in GitHub Desktop.
how to execute sed command from just files result from grep command
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