aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rat-cursors/get-hotspot
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdoc/rat-cursors/get-hotspot10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/rat-cursors/get-hotspot b/doc/rat-cursors/get-hotspot
new file mode 100755
index 0000000..bc6cc96
--- /dev/null
+++ b/doc/rat-cursors/get-hotspot
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+data="$(cat)"
+
+y=$(echo "${data}" | grep -n @ | cut -d : -f 1)
+x=$(echo "${data}" | grep -n @ | cut -d : -f 2 | sed 's/ /\n/g' | grep -n @ | cut -d : -f 1)
+
+echo x: $(expr $x - 1)
+echo y: $(expr $y - 1)
+