FreeCalypso > hg > sms-coding-utils
view scripts/sms-deliver-pdu-hdr @ 27:7418ca2e9949
libcoding: add functions from freecalypso-tools/uptools/libcoding
that are needed for sms-pdu-decode & pcm-sms-decode
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 Jun 2024 02:29:29 +0000 |
parents | dc1cc851025c |
children |
line wrap: on
line source
#!/bin/sh if [ $# -lt 1 ] then echo "usage: $0 from-number [options]" 1>&2 exit 1 fi echo "user-addr $1" shift while [ $# != 0 ] do case "$1" in lp|mms|rp|sr) echo "$1" shift ;; pid|sc-ts) if [ $# -lt 2 ] then echo "error: $1 requires an argument" 1>&2 exit 1 fi echo "$1 $2" shift shift ;; *) echo "error: invalid option $1" 1>&2 exit 1 esac done