1
0
Эх сурвалжийг харах

replace example with an OS agnostic example

Alex Flores 9 жил өмнө
parent
commit
85da9a1c03
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      pages/common/xargs.md

+ 3 - 3
pages/common/xargs.md

@@ -10,10 +10,10 @@
 
 `{{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`