摘要: cat > temp004AA1abcAA2AA3abcAA4abcAA5AA6awk 'BEGIN {pre=0; str="";} { if(NR==1){ if($0 ~ /AA/) {pre=1;} else {pre=0;} str=$0; } else { if($0 ~ /AA/) {阅读全文
posted @ 2017-12-06 02:13 emanlee 阅读(5) 评论(0) 编辑
摘要: cat > temp0015101269125 awk 'p{print $0-p}{p=$0}' temp00152-633-7 REF: https://www.unix.com/shell-programming-and-scripting/130727-how-subtract-adjace阅读全文
posted @ 2017-12-06 01:32 emanlee 阅读(5) 评论(0) 编辑