While for a finite amount of parameters one can explicitly do something likewrapped_function ${1#prefix} ${2#prefix} ${3#prefix}  # etc.,isn't there a simpler way to manipulate all parameters at once?
How to manipulate all parameters of a shell script at once?
bash;parameter
Sure there is,wrapped_function ${@#prefix}The $@ represents the collection of all parameters $1, $2, ... (see here) in individual quotes, i.e. basically$@=\$1\ \$2\ \$3\ ...however, bash applies variable manipulations individually on each parameter, i.e.${@#prefix}=\${1#prefix}\ \${2#prefix}\ ...The ${VAR#prefix} syntax means if $VAR starts with prefix, remove it, e.g.TEST=/tmp/var/bin; echo ${TEST#/tmp}  # yields /var/binSimilarly, one can use % instead of # to remove a suffix. 