Difference between revisions of "Xargs"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
[https://man7.org/linux/man-pages/man1/xargs.1.html xargs] is a unix command for assigning various inputs to different pther unix commands. | [https://man7.org/linux/man-pages/man1/xargs.1.html xargs] is a unix command for assigning various inputs to different pther unix commands. | ||
To execute commands for each of the line feed, use the following option:<code>-n 1</code>. For example: | |||
ls | xargs -n 1 echo {} | |||
[[Category:Unix Command]] | [[Category:Unix Command]] |
Revision as of 09:13, 14 January 2022
xargs is a unix command for assigning various inputs to different pther unix commands.
To execute commands for each of the line feed, use the following option:-n 1
. For example:
ls | xargs -n 1 echo {}