thanks guys!!!!
---------- Post updated at 02:56 PM ---------- Previous update was at 02:13 PM ----------
One last thing. I am tring to use only last 1000 lines of the log file as an input in this way:
tail -1000 /var/log/httpd/mysite-access_log.log |awk 'BEGIN{IGNORECASE=1}NR==FNR {SRCSTR=SRCSTR DELIM $0; DELIM="|"; next} gsub (SRCSTR,"&")>=2' patternfile
what am I doing wrong?