Skip to content

Instantly share code, notes, and snippets.

@obihann
Last active April 26, 2020 23:21
Show Gist options
  • Save obihann/a79d13fca16b211a6f184bbfb8cd05af to your computer and use it in GitHub Desktop.
Save obihann/a79d13fca16b211a6f184bbfb8cd05af to your computer and use it in GitHub Desktop.
Track calls in SDRTrunk that have no alias
awk -F ',' '{print $6}' ~/SDRTrunk/event_logs/*_call_events.log | grep -v TO | grep -v "\"\"" | sed "s/\"//g" | sort -u > ~/mpsnr.log
while read call; do if ! grep -q "$call" ~/SDRTrunk/playlist/default.xml; then grep "$call" ~/trs.csv; fi; done < ~/mpsnr.log 2>/dev/null
20000 Shubie Radio
1000 Sheriff Dispatch
1001 Sheriff HFX
1002 Sheriff Kings
1004 Sheriff Pictou
1005 Sheriff Colchester
1006 Sheriff Lunenberg
1007 Sheriff Yarmouth
3013 EHS North
3014 EHS North
3015 EHS North
3003 EHS Central
3004 EHS Central
3005 EHS Central
3011 Cobequid Community Health Centre
4007 QE2/Infirmary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment