aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rat-cursors/get-hotspot
blob: 592affd4d417d00b6f7a0680e6f6261ae3ad2dd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e

data="$(cat)"

y=$(echo "${data}" | grep -n O | cut -d : -f 1)
x=$(echo "${data}" | grep -n O | cut -d : -f 2 | sed 's/ /\n/g' | grep -n O | cut -d : -f 1)

echo x: $(expr $x - 1)
echo y: $(expr $y - 1)