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