diff options
Diffstat (limited to 'doc/rat-cursors/get-hotspot')
-rwxr-xr-x | doc/rat-cursors/get-hotspot | 10 |
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) + |