#!/bin/bash
for a in ` cat tihuan-IMID-suiji.txt `
do
被替换内容 被替换内容
sed -i "1,/21001035/s/21001035/$a/" tihuan.txt
done
本文转自 chengxuyonghu 51CTO博客,原文链接:http://blog.51cto.com/6226001001/1582903,如需转载请自行联系原作者
#!/bin/bash
for a in ` cat tihuan-IMID-suiji.txt `
do
被替换内容 被替换内容
sed -i "1,/21001035/s/21001035/$a/" tihuan.txt
done