#!/bin/bash

ZIPLOGSDELAY=+2
DELLOGSDELAY=+7
ZIPCMD=/bin/gzip
DELCMD=/bin/rm

find /opt/svam/logs/sqm/logs/  -name "sqmivr.*.log"     -exec $ZIPCMD  {} \;

find /opt/svam/logs/sqm/logs/  -name "sqmivr.*.log"   -mtime $DELLOGSDELAY  -exec $DELCMD  {} \;
