I have been trying to pipe this command
tail -n +$line $FILENAME
to this command
parallel -a $FILENAME -k --block $sub --pipe-part "cut -d ' ' -f1" | sponge $FILENAME
And the resulting command is as follows:
tail -n +$line $FILENAME | parallel -k --block $sub --pipe-part --eta --progress "$cut -d ' ' -f1 | sponge $FILENAME
I also tried the same thing with --pipe instead of --pipe-part
Why is this command emptying my file completely? How does piping work with the parallel command?