Xargs

From Linuxintro
Revision as of 10:22, 22 December 2009 by imported>ThorstenStaerk (New page: xargs allows you to pipe the output of one program as parameters to another program. ;'''Example:''' You want to show the content of all text files in your directory: ls | xargs cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

xargs allows you to pipe the output of one program as parameters to another program.

Example: You want to show the content of all text files in your directory
ls | xargs cat