annotate echo.bash @ 28:184d14e4270d

Update to Miller Lab devshed revision 4ede22dd5500
author Richard Burhans <burhans@bx.psu.edu>
date Wed, 17 Jul 2013 12:46:46 -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