Find all files and modify the content const
to let
$ find ./ -type f -exec sed -i 's/const/let/g' {} \;
Find readable and writable files and modify the content old
to new
$ find ./ -type f -readable -writable -exec sed -i "s/old/new/g" {} \;
See also: sed cheatsheet
Comments