#! /bin/bash START=2020-04-14 cat /home/solar/documents/ISSUES/solar-orbiter-issues.csv | grep REBOOT | cut -d, -f1 > tmpfile cat tmpfile | sed -e "s/ /T/" | sed -e "s/\$/ DPU_REBOOT/" | tee dpu_reboot.list SWA_EVENT $(PERIODE $START $(TODAY)) 2>/dev/null | grep SWA_E_DPU_OPS | cut -c 56- > tmpfile cat tmpfile | sort -u | cut -d " " -f1 | sed -e "s/\$/ SWA_E_DPU_OPS_STATE/" | tee dpu_ops.list cat dpu_reboot.list dpu_ops.list | sort -u > MIXED.list