shell 循环列表输出

#!/bin/sh
while read line
do
grep $line /data/logs/joy.log.* |grep yellow
echo $line
done < ./gold.txt

你可能感兴趣的:(linux)