2011年3月30日 星期三

見證奇蹟之取代資料夾內所有檔案的字串

把aaa 取代成 bbb (遇到特殊符號可以用\跳脫字元)

find ./ -type f -exec sed -i 's/aaa/bbb/' {} \;

把linux/config.h 取代成 linux/autoconf.h

find ./ -type f -exec sed -i 's/linux\/config.h/linux\/autoconf.h/' {} \;

沒有留言: