Example – delete lines containing @SuppressWarnings('DuplicateStringLiteral') string in all test files:

sed -i '' "/@SuppressWarnings('DuplicateStringLiteral')/d" test/**/*.groovy
Advertisements