simple shell script to get queries from swdf log files