Master · Let commands collaborate
xargs: Convert input into command parameters
Syntax
xargs [command [parameters...]]Examples
printf "a.txt b.txt" | xargs touchUsage and sandbox support
The teaching subset is split by white space. To actually handle arbitrary file names, find -print0 and xargs -0 are usually used.
Hands-on exercises
Related commands
echoOutput a piece of textprintfOutput text according to formatteeOutput and save pipeline contentsexportSet environment variablesenvView environment variablesprintenvOutput the value of environment variableunsetRemove variableshistoryView command historyclearClear the terminal displaytrueReturn success statusfalseReturn failure statusseqGenerate a sequence of numberssleepPause for specified timealiasSet command aliasunaliasRemove command aliassourceRead script in current ShellreadRead variables from inputbashRun the Bash scriptshRun the POSIX Shell scriptcommandControl command lookupjobsView current Shell jobsbgResume background jobfgResume foreground jobwaitWait for child process to endnohupIgnore hangup signal and runtimeoutLimit command running timewatchDisplay command results periodicallytimeMeasure run timeulimitView or set resource limitssetSet Shell behaviortrapHandle exit or signaltmuxManage terminal sessionsscreenKeep terminal session