annotate echo.bash @ 0:2c498d40ecde

Uploaded
author miller-lab
date Mon, 09 Apr 2012 12:03:06 -0400
parents
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