# Basic syntax: # For a BAM file: samtools view file.bam | cut -f 10 > output.txt # For a SAM file: cut -f 10 file.sam > output.txt