aboutsummaryrefslogtreecommitdiff
path: root/src/dirty_hack.sh
blob: 67691a3d260b09e3371305f0edae3faf920f8bc3 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env zsh

mmcli -m any --location-get | # get location from modem manager
grep "long\|lat\|alt" | # select only relevant lines
cut -d':' -f2 | # remove colons,
cut -d' ' -f2 | # and leading spaces
tr '\n' ',' | # csv-esque
cut -d',' -f1-3 # remove unwanted newline