#!/bin/bash

#
# Print the header of a SAM file and exit
#

awk '{ if ($1 ~ /^@/ || $1 ~ /^\s*$/) { print $0; } else { exit; } }'
