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