I want to be able to split an output from a command line that goes into a file. I want either or both of the following ways to split:
- Split based on file size. If it gets to say 500kb, then create a new file
- Split based on lines in file. If it gets to 1000 lines, then create a new file
Of course, this also means I need a variable name for the output
This is the command I'm running now:
java -jar "C:\Processors\myProcessor.jar" >> "C:\Processors\myprocessor.log"
Would like 'myprocessor.log' to be split in files accordingly.