echo "Enter month: " read MONTH echo "Enter ip: " read IP awk -v mon="$MONTH" -v ip="$IP" '$3~mon && $1~ip { print ... }' *.hits