find / xargs
Wiki Index
find
$ find . -iname "*match*" -exec rm -r {} +
{}
is replaced by all matches at once.+
is a terminator, but is also used to denote this style of interpolation.
$ find . -iname "*match*" -exec rm -r {} \;
{}
is replaced by matches one at a time.-
is a terminator, but is also used to denote this style of interpolation.
xargs
# Basic usage
$ ls *.mp4 | xargs -n1 -P4 command
# Positional
$ ls *.mp4 xargs -I{} -n1 -P4 command {} out.xyz