You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# echo -e "1a
2b
3c" | xargs -P $(nproc --ignore=1) -d'\n' -I{} -n1 -r echo "FOO {} BAR"
FOO 1a BAR
FOO 2b BAR
FOO 3c BAR
xargs options explained:
-P $(nproc --ignore=1) - the -P enables multiple threads, nproc reports how many are available -d'\n' - use newline char as delimeter -I{} - replace {} with the incoming line, implies -L1 (max lines one, the default) -n1 - max args 1 (everything on the incoming line is interpolated into {}) -r - dont run following command if the incoming line is empty
The "shell prompt" mode can only run commands in the following syntax:
$cmd $selection
where:
$cmd
is the command chosen from the list, or typed out$selection
is the file(s) chosen in file manager modeNeed to work out how to insert $selection into any place in a command string, so users can write stuff like the following and hit ENTER:
where:
{}
is each file listed in$selection
The text was updated successfully, but these errors were encountered: