Mar 14
Im forever forgetting this one liner to search and replace text using perl, I can’t be the only one!
Here it is: perl -p -i -e ’s/oldstring/newstring/g’ filename
Im forever forgetting this one liner to search and replace text using perl, I can’t be the only one!
Here it is: perl -p -i -e ’s/oldstring/newstring/g’ filename
Recent Comments