aboutsummaryrefslogtreecommitdiff
path: root/http-status-codes/extend.sh
diff options
context:
space:
mode:
Diffstat (limited to 'http-status-codes/extend.sh')
-rwxr-xr-xhttp-status-codes/extend.sh4
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}
12TMPDIR=`pwd` 12TMPDIR=`pwd`
13export TMPDIR 13export TMPDIR
14 14
15for n in `seq 100 599` 15n=100
16while [ "$n" -le 599 ]
16do 17do
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`
20done 22done
21 23
22 24