歡迎您光臨本站 註冊首頁

linux文本批量替換

←手機掃碼閱讀     火星人 @ 2014-03-08 , reply:0

For txtn in *.txt

Do

If [ -f "txtn" ]; then

Find -name $dirs |xargs perl -pi -e 's|需要替換的內容|新的內容|g'

Fi

done

本文出自 「夜落風辰」 博客,請務必保留此出處http://xtwksse.blog.51cto.com/509310/840009


[火星人 ] linux文本批量替換已經有486次圍觀

http://coctec.com/docs/linux/show-post-46038.html