I have a file containing one column of number:
1
2
4
4
10
I would like to calculate the difference between each number using awk. The output should be like this :
1
2
0
6
How can I do it ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…