แหล่งความรู้ > Linux Server System
Replace a String in Multiple Files in Linux Using Grep and Sed
(1/1)
admin:
Basic Format
grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g'
Example
grep -rl 'windows' ./ | xargs sed -i 's/windows/linux/g'
นำร่อง
[0] ดัชนีข้อความ
Go to full version