#! /usr/bin/env bash
for dev in `awk -F, '{print $7}' devices-dec.csv`; do grep $dev devices-dec.csv > dec-$dev.csv; python nwstatusreport.py dec-$dev.csv > stats-dec-$dev.csv; done && sleep 300 && while true; do for dev in `awk -F, '{print $7}' devices-dec.csv`; do python nwstatusreport.py dec-$dev.csv | grep -v time >> stats-dec-$dev.csv; done ;sleep 300; done
