DX Operations Watchers for GridTracker2

DX Watchers 1.
Regexs are for the Message field in GT2. All announced DX Operations.

DX Watchers 2.
Regexs are for the Message field in GT2. Currently active DX Operations.

DX Watchers 3.
Regexs are for the Callsign field in GT2. All announced DX Operations.

DX Watchers 4.
Regexs are for the Callsign field in GT2. Currently active DX Operations.
Rivi 1: Tämä pitkä koodirivi ei taitu automaattisesti uudelle riville, vaan pysyy alkuperäisessä muodossaan. Tämä pitkä koodirivi ei taitu automaattisesti uudelle riville, vaan pysyy alkuperäisessä muodossaan.
rivi 2: Tämä pitkä koodirivi ei taitu automaattisesti uudelle riville, vaan pysyy alkuperäisessä muodossaan. Tämä pitkä koodirivi ei taitu automaattisesti uudelle riville, vaan pysyy alkuperäisessä muodossaan.
rivi 3 : oma rivi
copyWatchers-win.sh A script file to copy watchers to the app-settings.json in Windows.
#!/bin/sh if (tasklist | grep GridTracker2.exe); then echo "Not copied. GridTracker2 is running." else echo "GridTracker2 is not running." sed -i -ne '/"watchers": {/ {p; r DXWATCHER' -e ':a; n; /"YOUR_WATCHER": {/ {p; b}; ba}; p' C:/Users/YOUR_USERNAME/AppData/Roaming/GridTracker2/Ginternal/app-settings.json & wait echo "dxwatchers copied to app-settings.json" fi
copyWatchers.sh A script file to run the above command in Linux
#!/bin/sh if (ps cax | grep gridtracker2); then echo "Not copied. GridTracker2 is running." else echo "GridTracker2 is not running." sed -i -ne '/"watchers": {/ {p; r YOUR_HOME/YOUR_DIRECTORY/DXWATCHER' -e ':a; n; /"YOUR_WATCHER": {/ {p; b}; ba}; p' YOUR_HOME/.config/GridTracker2/Ginternal/app-settings.json & wait echo "dxwatchers copied to app-settings.json" fi