Hi Nikelle,
right, samtools view -h -F0x100 only outputs primary alignments, i.e. one alignment per read.
awk 'substr($1,1,1)=="@" || substr($12,6)+0 > 1 outputs either the header lines (start with @), or those that have the 12th field HI:i:N with N>1 . HI:i:N is 12th field by default, but you may change that with --outSAMattributes option.
Cheers
Alex