#!/bin/bash

#
# Print the header of a .vcf or .vcf.gz file
#

gzip -fdc $1 | \
awk '{ if ($1 ~ /^#/) { print $0; } else if($1 ~ !/^\s*$/) { exit; } }'
