annotate echo.bash @ 27:8997f2ca8c7a

Update to Miller Lab devshed revision bae0d3306d3b
author Richard Burhans <burhans@bx.psu.edu>
date Mon, 15 Jul 2013 10:47:35 -0400
parents 2c498d40ecde
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
1 #!/usr/bin/env bash
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
2
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
3 if [ $# -lt 3 ]; then
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
4 echo "usage"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
5 exit 1
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
6 fi
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
7
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
8 input="$1"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
9 output="$2"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
10 shift 2
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
11
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
12 for individual in "$@"; do
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
13 echo "$individual" >> "$output"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
14 done
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
15
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
16 exit 0
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
17