diff options
| author | spv <spv@spv.sh> | 2025-07-29 14:37:05 -0400 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2025-07-29 14:37:05 -0400 |
| commit | 1a1d4a62cead53050c05e6cdac50d81835541720 (patch) | |
| tree | f8eac71f058fa7278cfbeab1f477b5d8586868ed /src | |
| parent | c5aa5e006492825548a6d07b50ee401170cd2469 (diff) | |
mmcli jank
Diffstat (limited to 'src')
| -rwxr-xr-x | src/dirty_hack | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dirty_hack b/src/dirty_hack new file mode 100755 index 0000000..67691a3 --- /dev/null +++ b/src/dirty_hack @@ -0,0 +1,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
\ No newline at end of file |
