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

Oracle 10g installation steps in CentOS 5

/bin/sh^M: bad interpreter: No such file or directory Linux