#1bin.bash filename="/home/song/my.txt" while read line do echo $line | grep -w "nice" | sed -e ‘s/nice//g‘ -e ‘s/hello/no/g‘>mynew.txt done < $filename
本文出自 “风清扬song” 博客,请务必保留此出处http://2309998.blog.51cto.com/2299998/1358283
原文:http://2309998.blog.51cto.com/2299998/1358283