Please modify solution

Hi
Please check my code,here awk -vLIT="$line" '$0 ~ LIT { print LIT,"Found in ",FILENAME; }' $f it is not checking for small alphabets.can u pls modify my code

#!/bin/ksh
for f in /tmp/satemp/*
do
cat /tmp/sa/tt.txt| while read line
do
awk -vLIT="$line" '$0 ~ LIT { print LIT,"Found in ",FILENAME; }' $f
done
done
awk -v LIT="$line" ' tolower($0) ~ tolower(LIT) { print LIT,"Found in ",FILENAME; }' $f

Similar but much simpler, and -i makes it case insensitive:

#!/bin/ksh
egrep -i -f /tmp/sa/tt.txt /tmp/satemp/*

GNU egrep even takes

egrep -i -o -f /tmp/sa/tt.txt /tmp/satemp/*

Does it stop scanning the file after printing?