linux command to find and change a value in multi files

linux command to find and change a value in multi files

find . -name "*.php" -print | xargs sed -i 's/power/strong/g'

here  *.php will search for all files that ends with .php
''power''  is the value to be searched and
''strong'' in the value to be replaced

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect

How to replace find -maxdepth option in Solaris Operating System using -prone