标签:done bin 读取 sed $1 awk int while bash
#!/bin/bash
while read line
do
echo $line
txt=`echo $line |awk -F‘ ‘ ‘{print $1}‘`
id=`echo $line|awk -F‘ ‘ ‘{print $3}‘`
echo $txt
echo $id
sed "s/ws22041.com/${txt}/g" 2.txt > 4.txt
sed "s/5429/${id}/g" 4.txt >> 5.txt
# sleep 5
done < 3.txt
标签:done bin 读取 sed $1 awk int while bash
原文地址:https://www.cnblogs.com/yanzi2020/p/14724061.html