Here’s a useful mac osx / linux trick that helps with replacing a string across multiple files using sed.
I am trying to replace
The command is
sed -i ” ‘s/setApply(\”s1\”, \”parallel\”)/configApplyParallelization(\”s1\”,\”dynamic-vertex-parallel\”)/g’ *.gt
The trick for mac osx is that you need an empty string after the -i, otherwise you get an error message
extra characters at the end of p command
Only figured this out thanks to this post
I believe you don’t need this on linux, the original post here