Search and Replace Strings in Files Under a Certain Directory

As simple as:
$ find thePath -type f -name theFileNamePattern |xargs \
  perl -e "s/toBeReplacedString/newString/g" -pi

Popular posts from this blog

Understanding of OCSP Stapling

TLS Server Name Indication Extension and Unrecognized_name

JEP 115: AES-GCM CipherSuites in JDK 8