4 ms·
With xargs I always have the problem that lines get mangled when you have concurrent output, so you have to work around that. GNU parallel prevents this by some
by adrianN 10y ago
With xargs I always have the problem that lines get mangled when you have concurrent output, so you have to work around that. GNU parallel prevents this by some magic.
- sigil 10y agoThe "magic" is simply output buffering inside GNU parallel...something you should be aware of if the concurrent programs are producing large amounts of output.
- xorcist 10y agoIf you find yourself depending on the order of output lines, your are probably better off using something like Python Fabric instead.
- adrianN 10y agoReproducing that behavior with just bash and xargs is too difficult for me.
- ole_tange 10y ago"inside" = temporary files - not RAM. See comparison on https://www.gnu.org/software/parallel/parallel_design.html#Buffering-on-disk https://www.gnu.org/software/parallel/parallel_design.html#B...