-={ jeudi, juin 04 2015, 19:30:26 -0700 }=-
Hey mark!
ml> ahhh... yeah, that was written without any testing or
ml> consideration to the '.'...
Understood. However it did raise the issue that if 5D addressing isn't taken
care of then the original posting will produce an origPoint as well as a
destPoint with the '@domainname' taked on at the end such as;
origPoint="0@fidonet"; destPoint="0@fidonet"
using your example. To solve this I changed the split to;
read origZone origNet origNode origPoint <<< \
$(echo $origAddr | cut -f1 -d@ | tr ':/.' ' ')
and;
read destZone destNet destNode destPoint <<< \
$(echo $destAddr | cut -f1 -d@ | tr ':/.' ' ')
which produces the desired splits while retaining the 5D-ness of both the
complete origAddr and destAddr (ie 1:11/111.0@fidonet in your original
posting). I currently cannot think of a need for either origDomain or
destDomain but have already come up with a way to extract it if and when it is
needed. I have serious doubts that it is needed.
Life is good,
Maurice
... Don't cry for me I have vi.
--- GNU bash, version 4.3.33(1)-release (x86_64-atom-linux-gnu)
* Origin: Pointy Stick Society - Ladysmith BC, Canada (1:153/7001.0)
|