From dad2dcdb7f0f5c4083d74498b27b842458c4d198 Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Thu, 12 Sep 2024 04:03:26 +0000 Subject: [PATCH] update src/oe/xargs/xargs.md. Signed-off-by: Caohongtao --- src/oe/xargs/xargs.md | 121 +++++++++++++++++++++++++++++------------- 1 file changed, 85 insertions(+), 36 deletions(-) diff --git a/src/oe/xargs/xargs.md b/src/oe/xargs/xargs.md index 0edf97a..f406753 100644 --- a/src/oe/xargs/xargs.md +++ b/src/oe/xargs/xargs.md @@ -12,39 +12,88 @@ xargs -V Build and execute command lines from standard input. ## Arguments --0, --null items are separated by a null, not whitespace; - disables quote and backslash processing and - logical EOF processing --a, --arg-file=FILE read arguments from FILE, not standardinput --d, --delimiter=CHARACTER items in input stream are separated by CHARACTER, - not by whitespace; disables quoteand backslash - processing and logical EOF processing --E END set logical EOF string; if END occursas a line - of input, the rest of the input isignored - (ignored if -0 or -d was specified) --e, --eof[=END] equivalent to -E END if END isspecified; - otherwise, there is no end-of-filestring --I R same as --replace=R --i, --replace[=R] replace R in INITIAL-ARGS with namesread - from standard input, split at newlines; - if R is unspecified, assume {} --L, --max-lines=MAX-LINES use at most MAX-LINES non-blank inputlines per - command line --l[MAX-LINES] similar to -L but defaults to at mostone non- - blank input line if MAX-LINES is notspecified --n, --max-args=MAX-ARGS use at most MAX-ARGS arguments per command line --o, --open-tty Reopen stdin as /dev/tty in the child process - before executing the command; useful to run an - interactive application. --P, --max-procs=MAX-PROCS run at most MAX-PROCS processes at atime --p, --interactive prompt before running commands - --process-slot-var=VAR set environment variable VAR in child processes --r, --no-run-if-empty if there are no arguments, then do not run COMMAND; - if this option is not given, COMMANDwill be - run at least once --s, --max-chars=MAX-CHARS limit length of command line to MAX-CHARS - --show-limits show limits on command-line length --t, --verbose print commands before executing them --x, --exit exit if the size (see -s) is exceeded - --help display this help and exit - --version output version information and exit +- **-0**, **--null** + + Items are separated by a null, not white space;disables quote and backslash processing and logical EOF processing. + +- **-a**, **--arg-file=FILE** + + Read arguments from FILE, not standard input. + +- **-d**, **--delimiter=CHARACTER** + + Items in input stream are separated by CHARACTER,not by white space; disables quote and backslash processing and logical EOF processing. + + +- **-E END** + + Set logical EOF string; if END occurs as a line of input, the rest of the input is ignored (ignored if -0 or -d was specified). + +- **-e**, **--e of[=END]** + + Equivalent to -E END if END is specified; otherwise, there is no end-of-file string. + +- **-I R** + + Same as --replace=R. + +- **-i**, **--replace[=R]** + + Replace R in INITIAL-ARGS with names read from standard input, split at newlines; if R is unspecified, assume {}. + +- **-L**, **--max-lines=MAX-LINES** + + Use at most MAX-LINES non-blank input lines per command line. + +- **-l[MAX-LINES]** + + similar to -L but defaults to at most one non-blank input line if MAX-LINES is not specified. + +- **-n**, **--max-args=MAX-ARGS** + + Use at most MAX-ARGS arguments per command line. + +- **-o**, **--open-tty** + + Reopen stdin as /dev/tty in the child process before executing the command; useful to run an interactive application. + +- **-P**, **--max-procs=MAX-PROCS** + + run at most MAX-PROCS processes at a time. + +- **-p**, **--interactive** + + Prompt before running commands. + +- **--process-slot-var=VAR** + + Set environment variable VAR in child processes. + +- **-r**, **--no-run-if-empty** + + If there are no arguments, then do not run COMMAND;if this option is not given, COMMAND will be run at least once. + + +- **-s**, **--max-chars=MAX-CHARS** + + Limit length of command line to MAX-CHARS. + +- **--show-limits** + + show limits on command-line length. + +- **-t**, **--verbose** + + print commands before executing them. + +- **-x**, **--exit** + + Exit if the size (see -s) is exceeded. + + - **--help** + + display this help and exit. + + _ **--version** + + output version information and exit. -- Gitee