xe
Execute a command once for each line piped from another command or file. More information: https://github.com/leahneukirchen/xe/blob/master/README.
- Run a command once for each line of input data as arguments:
| xe
- Execute the commands, replacing any occurrence of the placeholder (marked as
{}) with the input line:
| xe {}
- Execute a shellscript, joining every
Nlines into a single call:
echo -e 'a\nb' | xe -N -s 'echo $2 $1'
- Delete all files with a
.backupextension:
find . -name '' | xe rm -v
- Run up to
max-jobsprocesses in parallel; the default is 1. Ifmax-jobsis 0, xe will run as many processes as cpu cores:
| xe -j
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
