summaryrefslogtreecommitdiff
path: root/IPs_to_triangle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'IPs_to_triangle.sh')
-rwxr-xr-xIPs_to_triangle.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/IPs_to_triangle.sh b/IPs_to_triangle.sh
new file mode 100755
index 0000000..a84e3db
--- /dev/null
+++ b/IPs_to_triangle.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+whob | egrep '^IP|^Lat|^Long' | cut '-d ' -f2- | paste - - - | tr '\t' ' ' | awk '{print $1, $3, $2, 0, $3, $2, 0, $3, $2, 0}' | xargs -L1 printf '%s addtriangle %s %s %s %s %s %s %s %s %s\n'