sam から forward / reverse read だけを抽出する

awk -F"\t" '/^@/ || and(rshift($2,4),1) == 1 {print}' でOK。