I have a process that\'s writing a lot of data to stdout, which I\'m redirecting to a log file. I\'d like to limit the size of the file by occasionally copying the current
Take a look at the utility split(1), part of GNU Coreutils.
split(1)