Add set statement and quotes around the pattern variable.
Code:
set -vx
echo "Please enter the pattern below:"
read pattern
echo -e "Scanning t1 Logs...\n"
grep -i "$pattern" /f1/log/t1.log*
....
Execute your script with sample pattern and show us the trace of your script