Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Suppose you wanted to look only at field 3 (contig name) values in the SAM file. You can do this with the handy cut command. Below is a simple example where you're asking cut to display the 3rd of column value for the last 10 alignmentsalignment records.

Code Block
languagebash
titleCut syntax for a single field
tail yeast_pairedend.sam | cut -f 3

...