xargs
Arch General Commands Manual: xargs
Using sed and xargs to pass a list of arguments to a command from a text file.
For example, to install two lists of packages in Ubuntu:
- xargstakes the output from- sedas arguments to- apt
- sed 's/#.*$//'filters out text after- #. So the- list2.txtcan have comments like this