I have numbers with different digits each into variables, and I would like to write a script which split them into three variables each one using expect tcl. The first variable should contains three digits, the second always 8 digits, and the third one the remaining digits. How could I achieve that?
Ps: The available answers on the platform show how to achieve this with bash.
Numbers:
- 345653987652
- 87645625398784
- 3984737645
- 4657636359487564