write to file the output of a print

Hello, thanks and congratulations for the forums.
Thanks and excuse me by my English

My question is how can i write to a file in a script the output of a print command.
More in details, i want to save to a command the output of a “/ip firewall mangle print”

I want to known if it´s possible or not…and in his defect, alternatives

Thanks…

/ip firewall mangle export file=MyFile

Thanks, but it is not what i need.
I want save to file the result of a print command, no a export of the rules.
Exaple:
ip firewall mangle print >> File

On 2.8.xx you could use this command:
ip firewall mangle print file=<file_name>

on 2.9.xx there doesn’t seem to be that option..

you could do a print then select option ‘d’ to do a console-dump..

OK man. Itá ok, but iám trying with de 2.7 version.
I try with a 2.8 and it work fine. I´m expecting upgrade my system from 2.7 to 2.9 and it´s what i need to defend the upgrade.

Thank you very much.

hello have u try using copy all with ur mouse and then past it on ur text editor like NotePad