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