Wednesday, 19 June 2019

Linux find string in file recursively and replace

Find string in files recursively:
 grep -r -l "example.com" .

Replace a string in files recursively
sed -i 's/example.com/tahaluf.ae/g' *

No comments:

Post a Comment

Number of Visitors