From 4b6247a712949839ec31c84beb6685f5a845784f Mon Sep 17 00:00:00 2001 From: bonnie Date: Sat, 18 Jul 2020 23:48:32 +0800 Subject: [PATCH] Xargs - Prompt commands before running commands --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b0f9106..ae70199 100644 --- a/README.md +++ b/README.md @@ -685,6 +685,11 @@ awk '{$6 = $4 - prev5; prev5 = $5; print;}' xargs -d\t ``` +##### Prompt commands before running commands +```bash +ls|xargs -L1 -p head +``` + ##### Display 3 items per line ```bash echo 1 2 3 4 5 6| xargs -n 3