Hello, I noticed in the export file there are many "" symbols which seems doing nothing, just break the long line to multiple short ones. But I don’t want it, is it possible to force export without "" ? Thank you.
No, but it is possible to write a program that glues the lines back together again.
As it is also sometimes annoying that the export is split into sections instead of having the full command on every line
(so you can take individual lines and paste them into another router) I have made a simple Perl program to fix that:
#!/usr/bin/perl -w
# make single-line (joined) version of MikroTik exports
use strict;
my $cmd = "";
my $line = "";
while (<>)
{
chomp;
next if (/^#/);
if (/^\//) {
$cmd = $_.' ';
} else {
if (/\\$/) {
s/\\$//;
s/^[\t ]*//;
$line .= $_;
} else {
s/^[\t ]*//;
$line .= $_;
print "$cmd$line\n";
$line = "";
}
}
}