## 思路:以HWI开头,并且:相邻两行的第一个字段完全相同;
awk 'BEGIN{ last_col_1="xxxxxx"; last_row="bbbbbbbbbbb";} $1 ~ /HWI/{ if($1 == last_col_1) {print last_row; print $0;} last_col_1=$1; last_row=$0;}' test_for_filter_pairedreads.txt > temp001.txt

05-11 20:29