doall
Shell script to run a command for many files selected with wildcards
Extends shell * and ? wildcards to allow inserting matched strings like Windows 'copy *.old =.new'
Some examples:
# Rename current files as old
doall 'mv *.cur *.old'
# Compress camcorder DV files
doall 'ffmpeg -i *.dv *.mp4'
# Move files into directories according to their extension
doall 'mv *.* $2/$1.$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...