I have a file that contains a lot of columns. One column contain a list of number:
asd "/$ 0
asd /"$ 1
add %$" 4
add "/% 18
ads "/% 24
add "/% 30
I would like to write a script using awk that allows to measure the difference between the number contained in a row and the row before the previous row (exemple: the difference between the third row and the first row) So the output will be :
4
17
20
12
How can I do that ? (if you have a good tutorial about awk, I will be grateful)