doall
Shell script to run a command for many files selected with wildcards
....$2'
# Symbolic links from vmlinuz.new to vmlinuz-5.12.6-foo, similarly config.new System.map.new
doall 'ln -s /boot/*-5.12.6-* /boot/$1.new'
# Hard link 3-character abbreviations for file extensions
doall 'ln *.???* $1.$2'
As shown above, instead of '=' to indicate insertions, doall uses either * or $1 etc.
doall -p (pretend mode) shows a list of commands instead of executing them
doall -i (interactive mode) asks for confirmation for each command in turn
doall -k (keep-running mode) ignores failing commands