Difference between revisions of "Xargs"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
To execute commands for each of the line feed, use the following option:<code>-n 1</code>. For example: | To execute commands for each of the line feed, use the following option:<code>-n 1</code>. For example: | ||
ls | xargs -n 1 echo {} | ls | xargs -n 1 echo {} | ||
=Related Pages= | |||
{{#ask: [[Category:Xargs]] | |||
|format=list | |||
}} | |||
[[Category:Unix Command]] | [[Category:Unix Command]] | ||
[[Category:Xargs]] | [[Category:Xargs]] |
Revision as of 09:18, 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 {}
Related Pages
Video/HOW TO USE Xargs!!! Linux Core Utils, Video/Intro to xargs, Video/Xargs Should Be In Your Command Line Toolbag, Video/all about xargs ! (beginner - intermediate) anthony explains, Xargs