echo "select tbldura.mac,if(tbldura.durabyh<=3600,tbldura.durabyh,'1h+') as dura,tblfreq.freq, tbldura.timebyweek,tbldura.sender,tbldura.netid from z_weekdurabyh as tbldura INNER JOIN z_weekfreq as tblfreq on tbldura.mac=tblfreq.mac and tbldura.sender=tblfreq.sender and tbldura.netid=tblfreq.netid where (tbldura.durabyh='100' or tbldura.durabyh='200' or tbldura.durabyh>3600) and tbldura.netid='ihost-xx';" | mysql -uroot -p0ffs4t? wlsp > weekmac-dura-freq-2.txt
echo "select tbldura.mac,if(tbldura.durabyh<=3600,tbldura.durabyh,'1h+') as dura,tblfreq.freq, tbldura.timebyweek,tbldura.sender,tbldura.netid from z_weekdurabyh as tbldura INNER JOIN z_weekfreq as tblfreq on tbldura.mac=tblfreq.mac and tbldura.sender=tblfreq.sender and tbldura.netid=tblfreq.netid where (tbldura.durabyh='100' or tbldura.durabyh='200' or tbldura.durabyh>3600) and tbldura.netid='ihost-xx';" | mysql -uroot -p0ffs4t? wlsp > weekmac-dura-freq-2.txt