diff options
Diffstat (limited to 'http-status-codes/extend.sh')
-rwxr-xr-x | http-status-codes/extend.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/http-status-codes/extend.sh b/http-status-codes/extend.sh index db09f6b..91a600e 100755 --- a/http-status-codes/extend.sh +++ b/http-status-codes/extend.sh | |||
@@ -12,11 +12,13 @@ cat "$@" > ${TARGET} | |||
12 | TMPDIR=`pwd` | 12 | TMPDIR=`pwd` |
13 | export TMPDIR | 13 | export TMPDIR |
14 | 14 | ||
15 | for n in `seq 100 599` | 15 | n=100 |
16 | while [ "$n" -le 599 ] | ||
16 | do | 17 | do |
17 | VAL=`recsel -e "Value = $n" -P Description iana.tmp || true` | 18 | VAL=`recsel -e "Value = $n" -P Description iana.tmp || true` |
18 | CAPS=`echo ${VAL} | tr [a-z] [A-Z] | tr " -" "__"` | 19 | CAPS=`echo ${VAL} | tr [a-z] [A-Z] | tr " -" "__"` |
19 | recset -f Identifier -a "${CAPS}" -e "Value = $n" ${TARGET} | 20 | recset -f Identifier -a "${CAPS}" -e "Value = $n" ${TARGET} |
21 | n=`expr $n + 1` | ||
20 | done | 22 | done |
21 | 23 | ||
22 | 24 | ||