| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){ |
| 4 | echoscip-shell system . . echo. " |
| 5 | Written by Brian Bushnell |
| 6 | Last modified February 17, 2015 |
| 7 | |
| 8 | Description: Displays contents of a text file. |
| 9 | Start line and stop line are zero-based. Start is inclusive, |
| 10 | stop is exclusive. |
| 11 | |
| 12 | Usage: textfile.sh <file> <start line> <stop line> |
| 13 | |
| 14 | Please contact Brian Bushnell at [email protected] if you encounter any problems. |
| 15 | " |
| 16 | } |
| 17 | |
| 18 | #This block allows symlinked shellscripts to correctly set classpath. |
| 19 | pushd . > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 20 | DIR="${BASH_SOURCE[0]}" |
| 21 | while [scip-shell system . . `[`. -h "$DIR" ]; do |
| 22 | cd "$(dirnamescip-shell system . . dirname. "$DIR")" |
| 23 | DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")" |
| 24 | done |
| 25 | cd "$(dirnamescip-shell system . . dirname. "$DIR")" |
| 26 | DIR="$(pwdscip-shell system . . pwd.)/" |
| 27 | popd > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 28 | |
| 29 | #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" |
| 30 | CP="$DIR""current/" |
| 31 | set=0 |
| 32 | |
| 33 | if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then |
| 34 | usagescip-shell shell bbmap 39.20+dfsg-3 usage(). |
| 35 | exit |
| 36 | fi |
| 37 | |
| 38 | calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () { |
| 39 | source "$DIR""/calcmem.sh" |
| 40 | setEnvironment |
| 41 | parseXmx "$@" |
| 42 | } |
| 43 | calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@" |
| 44 | |
| 45 | function tfscip-shell shell bbmap 39.20+dfsg-3 tf().() { |
| 46 | local CMD="java $EA $EOOM -Xmx120m -cp $CP fileIO.TextFile $@" |
| 47 | echoscip-shell system . . echo. $CMD >&2 |
| 48 | eval $CMD |
| 49 | } |
| 50 | |
| 51 | tfscip-shell shell bbmap 39.20+dfsg-3 tf(). "$@" |