If people knew the grep, sed and vim tools, millions of useful software products would have been never developped.
I’ve just noticed that it’d be good to change the string new test_suite
to more stable macros BOOST_TEST_SUITE
. A very simple command did everything for me after spending 5 minutes for this:
[sakhnik@incognito ~/work/mps]$ find . -name '*.cc' | \ xargs sed -i '1,$s/(new test_suite(\([^)]*\)))/ = BOOST_TEST_SUITE(\1)/g'
That’s exciting!
Немає коментарів:
Дописати коментар