User Tools

Site Tools


ubuntu:xargs:limit_output_per_line

Ubuntu - xargs - Limit Output per Line

Use the -n option to specify the number of arguments you are limiting xargs to.

echo "1 2 3 4 5 6 7 8 9" | xargs -n 3

returns:

1 2 3
4 5 6
7 8 9
ubuntu/xargs/limit_output_per_line.txt · Last modified: 2021/06/22 12:15 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki