All pastes #510840 Raw Edit

g

public text v1 · immutable
#510840 ·published 2007-05-26 02:55 UTC
rendered paste body
#!/bin/bash#tests $@# run with: ./testit 1 2 3 4 -titleset 6 7 8 -end-titleset 0# output is: 1 2 3 4 0var="$@"echo "$var"foo=$(echo "$var" |sed -ne 's/\(.*\).*-titleset.*-end-titleset \(.*\)/\1\2/p');echo "new array output"for i in `seq ${#foo[@]}`; do echo -n " ${foo[$i-1]}";done; echo;exit 0