Thursday, October 25, 2012

replace string using grep and sed with help of xargs

grep -r "Wholesale Quran" * | cut -f1 -d ':' | xargs sed -i 's/Wholesale Quran/I-Furqan Quran/g' $0

No comments:

Post a Comment