#!/bin/bash -Ceuo pipefail awk ' NR == 2 { printf "total_sites\t%s\n", $1 printf "unstable_sites\t%s\n", $2 printf "unstable_pct\t%s\n", $3 } ' negative_somatic_control_1_xgen > negative_somatic_control_1.msi.tsv cat <<-END_VERSIONS > versions.yml "DAQ:CONTROL_METRICS:NEGATIVE_SOMATIC_METRICS:MSI": gawk: $(awk -W version 2>&1 | head -n1 | awk '{print $3}') END_VERSIONS