perl -p -i -e 's/oldstring/newstring/g' *
Why would you choose perl over sed? I'm just curious...
I don't think you can read and write to the same file with sed.
Why would you choose perl over sed? I'm just curious...
ReplyDeleteI don't think you can read and write to the same file with sed.
ReplyDelete