mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 01:35:32 +02:00
replace example with an OS agnostic example
This commit is contained in:
parent
b1d38625d5
commit
85da9a1c03
1 changed files with 3 additions and 3 deletions
|
@ -10,10 +10,10 @@
|
||||||
|
|
||||||
`{{arguments_null_terminated}} | xargs -0 {{command}}`
|
`{{arguments_null_terminated}} | xargs -0 {{command}}`
|
||||||
|
|
||||||
- Example: list unneeded packages with deborphan and remove them with apt-get:
|
- delete all files that start with 'M'
|
||||||
|
|
||||||
`sudo deborphan | xargs sudo apt-get remove`
|
`ls M* | xargs rm`
|
||||||
|
|
||||||
- creating variables: copy all files that start with 'M' to the Desktop
|
- assign incoming arguments to a variable so that they may be used in the middle of a command
|
||||||
|
|
||||||
`ls M* | xargs -J % cp % ~/Desktop`
|
`ls M* | xargs -J % cp % ~/Desktop`
|
||||||
|
|
Loading…
Add table
Reference in a new issue