Is it possible to save the text of the command line automatically? When a rendering is made via command line, the progress is appreciated as follows:

Fra:1 Mem:16.90M (0.00M, Peak 17.44M) | Time:00:00.02 | Scene, Part 1-135
Fra:1 Mem:16.81M (0.00M, Peak 17.44M) | Time:00:00.02 | Scene, Part 2-135
Fra:1 Mem:16.90M (0.00M, Peak 17.44M) | Time:00:00.03 | Scene, Part 3-135
Fra:1 Mem:16.88M (0.00M, Peak 17.44M) | Time:00:00.03 | Scene, Part 4-135
Fra:1 Mem:17.11M (0.00M, Peak 17.44M) | Time:00:00.04 | Scene, Part 6-135


How can I automatically pass the text that is displayed when I perform the rendering to a text file on my hard drive?
Tested on Linux and Windows, should work on MacOs too :

 blender -b file.blend &gt; file.txt