罗蓁蓁

关注

Calculate difference between consecutive data points in a column from a file

罗蓁蓁

关注

阅读 44

2023-11-06

 

 

cat > temp001
5
10
12
6
9
12
5

 awk 'p{print $0-p}{p=$0}' temp001
5
2
-6
3
3
-7

 

REF:

https://www.unix.com/shell-programming-and-scripting/130727-how-subtract-adjacent-lines-single-column.html

 



相关推荐

西曲风

Difference Between Safety and Security

西曲风 139 0 0

毅会

What is difference between TinyDTLS and DTLS

毅会 133 0 0

小时候是个乖乖

Difference between Software Architecture & Design

小时候是个乖乖 233 0 0

狐沐说

what is the difference between the “quantification“ and “assessment“

狐沐说 118 0 0

做个橙梦

RDBMS - Difference between Master and Transaction Table

做个橙梦 80 0 0

萧让听雪

What are the difference between DDL, DML and DCL commands?

萧让听雪 99 0 0

青乌

CF1671B Consecutive Points Segment 题解

青乌 38 0 0

佃成成成成

How do I extract a single column from a data.frame as a data.frame

佃成成成成 20 0 0

毅会

Difference between skbuff frags and frag_list

毅会 72 0 0

热爱生活的我一雷广琴

What's the difference between Atomic and Ordinary database engine

热爱生活的我一雷广琴 69 0 0

精彩评论(0)

0 0 举报