I used to have this command to count how many times I have click with a mouse, the command is xev | grep "ButtonPress"
.
my colleague modify the command so that it return:
ButtonPress 0
ButtonPress 1
ButtonPress 2
ButtonPress 3
and so on... Unfortunately he's no longer contactable so I can't reach him anymore.
I recall the involvement of i++
and something like that, how to reproduce the command?