From b1d38625d5e65e85a7137f8500313faf47d210c5 Mon Sep 17 00:00:00 2001 From: Alex Flores Date: Tue, 29 Dec 2015 00:09:35 -0500 Subject: [PATCH] adds commands to xargs and moves to pages/common - xargs is also native to OS X --- pages/{linux => common}/xargs.md | 4 ++++ 1 file changed, 4 insertions(+) rename pages/{linux => common}/xargs.md (74%) diff --git a/pages/linux/xargs.md b/pages/common/xargs.md similarity index 74% rename from pages/linux/xargs.md rename to pages/common/xargs.md index e61debb848..40aa472626 100644 --- a/pages/linux/xargs.md +++ b/pages/common/xargs.md @@ -13,3 +13,7 @@ - Example: list unneeded packages with deborphan and remove them with apt-get: `sudo deborphan | xargs sudo apt-get remove` + +- creating variables: copy all files that start with 'M' to the Desktop + +`ls M* | xargs -J % cp % ~/Desktop`