cat > temp001
5
10
12
6
9
12
5
awk 'p{print $0-p}{p=$0}' temp001
5
2
-6
3
3
-7
REF:
emanlee ©著作权
文章标签 html unix 文章分类 JavaScript 前端开发
cat > temp001
5
10
12
6
9
12
5
awk 'p{print $0-p}{p=$0}' temp001
5
2
-6
3
3
-7
REF:
上一篇:Linux/shell: remove adjacent similar patterns
下一篇:awk - group adjacent rows by identical columns 把列相同的行分组,统计出现次数
Safety and Security
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M