I have a print output file (uncomp.txt) that has form feeds in it. I'm trying to split the single document into multiple documents based on the \f regex match, and outputting files with the epoch time.
I've tried this:
$ csplit --prefix=$(date +%s) -s /tmp/uncomp.txt "/%\f%/+1" "{*}"
as well as this:
$ csplit --prefix=$(date +%s) -s /tmp/uncomp.txt "/\f/+1" "{*}"
and even this:
$ csplit -s --prefix=$(date +%s) /tmp/uncomp.txt /\f/ {*}
But each time I end up with a single file. It's apparently not picking up the \f regex... What am I doing wrong?
Just tried like this, using the standalone bash shell for windows
where I obtained
^L
by pressing CTRL+L. It worked for me.