Mercurial > repos > miller-lab > genome_diversity
diff echo.bash @ 17:a3af29edcce2
Uploaded Miller Lab Devshed version a51c894f5bed
author | miller-lab |
---|---|
date | Fri, 28 Sep 2012 11:57:18 -0400 |
parents | 2c498d40ecde |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/echo.bash Fri Sep 28 11:57:18 2012 -0400 @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +if [ $# -lt 3 ]; then + echo "usage" + exit 1 +fi + +input="$1" +output="$2" +shift 2 + +for individual in "$@"; do + echo "$individual" >> "$output" +done + +exit 0 +