#!/bin/sh # #author coffee_45 #This programme is used to replace the charactor what you want . #将指定文件列表中的文件内容逐个替换成想要的内容 echo "Enter the owner:" read OWNER while read LINE do sed 's/@test.com/@proxy.com/g' $LINE > $LINE.bak cp -f $LINE.bak $LINE chown $OWNER $LINE done < ./web.txt