TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: MARK LEWIS
from: MAURICE KINAL
date: 2015-06-05 02:30:00
subject: splitting the atom

-={ 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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.