На вчерашнюю дату
grep ',"555"' /var/log/asterisk/cdr-csv/Master.csv | grep $(date --date="yesterday" +%Y-%m-%d) | awk -F ',' '{print $2,$3,$12,$17}' | grep '"NO ANSWER"' | grep ' "555'
На сегодня
grep ',"555"' /var/log/asterisk/cdr-csv/Master.csv | grep $(date +%Y-%m-%d) | awk -F ',' '{print $2,$3,$12,$17}' | grep '"NO ANSWER"' | grep ' "555'
grep ',"555"' /var/log/asterisk/cdr-csv/Master.csv | grep $(date --date="yesterday" +%Y-%m-%d) | awk -F ',' '{print $2,$3,$12,$17}' | grep '"NO ANSWER"' | grep ' "555'
На сегодня
grep ',"555"' /var/log/asterisk/cdr-csv/Master.csv | grep $(date +%Y-%m-%d) | awk -F ',' '{print $2,$3,$12,$17}' | grep '"NO ANSWER"' | grep ' "555'
Комментариев нет:
Отправить комментарий