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

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

Linux Command to delete files older than x days in a directroy

CDbConnection failed to open the DB connection mysql 8