I'm using xargs to execute a command on a set of input parameters something like this:
cat <someinput> | xargs -n 1 -P 5 <somecmd>
The input file is really long and take a long time to run. So I'm just waiting for the command prompt to show up. Is there a way to display a progress bar for the number of input arguments that have completed?
I tried using 'bar' but I always got an 'infinite' throughput. It seems like xargs reads the entire input before executing commands.