Skip to content

Instantly share code, notes, and snippets.

@mdshw5
Created November 10, 2014 18:47
Show Gist options
  • Save mdshw5/8301a232b3eef043a780 to your computer and use it in GitHub Desktop.
Save mdshw5/8301a232b3eef043a780 to your computer and use it in GitHub Desktop.
prependcol for vcfroc
#!/bin/sh
colname=${1}"\t";
colval=${2}"\t";
awk -v colname="$colname" -v colval="$colval" '{ if ($1 == "threshold") { printf(colname); print } else { printf(colval); print }}' "$3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment