xargs -i
is deprecated in favor of -I{}
# Implicit replacement string
xargs -i ls {}
# Explicit replacement string
xargs -imyfilename ls myfilename
xargs -I {} ls {}
xargs -I filename ls filename
xargs -i
is a GNU specific option. It has been
deprecated in favor of the POSIX standard option -I
.
Note that -i
will implicitly use {}
as a
token if nothing is specified, while -I
requires it to be
explicit.
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.