Perl Search and Replace

2020-01-24

Replace all occurrences of oldstring with newstring across all python files in the current directory and all it's subdirectories.


find . -name "*.py" -type f -print0 | xargs -0 perl -pi -e 's/oldstring/newstring/g' --

Snippetsperlonelinerxargsfind

Git Delete Remote Branch