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

04 Jun 15 17:47, you wrote to All:

 MK> -={ Thursday, June 04 2015, 10:47:13 -0700 }=-

 MK> Hey All!

 MK> Given;
 MK>   origAddr="1:11/111.0"; destAddr="2:22/222.0"

 MK> then this should work - or at least does with the version of bash here;
 MK>   read origZone origNet origNode origPoint <<< \
 MK>     $(echo $origAddr | tr ':/.' ' ')
 MK> and
 MK>   read destZone destNet destNode destPoint <<< \
 MK>     $(echo $destAddr | tr ':/.' ' ')

you might want to do

  read origZone origNet origNode origPoint origDomain <<< \
    $(echo $origAddr | tr ':/.@' ' ')
  read destZone destNet destNode destPoint destDomain <<< \
    $(echo $destAddr | tr ':/.@' ' ')

to handle 5D FTN addresses like  1:11/111.0@fidonet

not knowing what else you are doing over there, i don't know the effects of an
empty origDomain or destDomain or if the script will blow up if the '.' and/or
'@' don't exist in the address...

)\/(ark

... Is that a penguin on your monitor?
---
* Origin: (1:3634/12.73)

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™.