save command output to file code example
Example 1: how to save command output in text file
YOUR-COMMAND > c:\PATH\TO\FOLDER\OUTPUT.txt
Example 2: how to save a text file with a terminal command
echo "insert text here" > filename.txt
YOUR-COMMAND > c:\PATH\TO\FOLDER\OUTPUT.txt
echo "insert text here" > filename.txt