I want to export items from my MikroTiks but I want to avoid having to put the continued lines back together with my scripts. I can add a subroutine to my scripts to do that for me, but it would be nice if there were an option in RouterOS which would avoid putting them in there in the first place.
If I connect with a terminal, I get lines wrapped as wide as the terminal.
If I "ssh router '/export;' > router.export.txt" I get lines wrapped for an 80 column terminal. I would hope for no wrapping when not in an active terminal.
With "ssh router -t '/export;' > router.export.txt" I get terminal width line (100 columns in this case, not wide enough for the lines I need) but I also get the escape codes which color the output.
add address=CPEPriv address-list=8MbDedicated client-id=1:0:0:0:0:0:0 \ comment=customer1-cpe disabled=no mac-address=00:00:00:00:00:00 \ server=ap_dhcp1
add address=CPEPriv address-list=8MbDedicated client-id=1:0:0:0:0:0:0 comment=customer1-cpe disabled=no mac-address=00:00:00:00:00:00 server=ap_dhcp1