aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rat-cursors/get-hotspot
blob: bc6cc96b370dd73c38625233afb00c333cff0bb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
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)