#!/bin/bash while read urls; do echo ${urls} >> /tmp/teste.log if [ $(grep -i ${urls} /etc/squid/teste.txt) ]; then echo OK else echo ERR fi done