xargs: insert piped arguments at random position
This commit is contained in:
@@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
`{{arguments_null_terminated}} | xargs -0 {{command}}`
|
`{{arguments_null_terminated}} | xargs -0 {{command}}`
|
||||||
|
|
||||||
|
- Inserting arguments at chosen position
|
||||||
|
|
||||||
|
`{{arguments}} | xargs -I piped_arguments {{command}} piped_arguments {{rest_of_arguments}}
|
||||||
|
|
||||||
- Example: list unneeded packages with deborphan and remove them with apt-get:
|
- Example: list unneeded packages with deborphan and remove them with apt-get:
|
||||||
|
|
||||||
`sudo deborphan | xargs sudo apt-get remove`
|
`sudo deborphan | xargs sudo apt-get remove`
|
||||||
|
Reference in New Issue
Block a user