I'm having difficulties to combine the linux command of "pv" (Pipe Viewer) and csplit in one single command line. Trying to make csplit to split a very big file (>10GB) with a running progress bar, the main command goes something like this:
csplit -n4 -s /tmp/somebigfile.txt "/a split pattern here/"
but if I try to use pv :
pv -p /tmp/somebigfile.txt | csplit -n4 -s "/a split pattern here/"
, it will throws error
and
csplit -n4 -s (pv /tmp/somebigfile.txt) "/a split pattern here/"
doesn't work either.
Any suggestions? thanks