As thrig already mentioned in a comment:
zsh -c 'prog *.txt(P:-f:)'
This uses the glob qualifier P
which prepends a separate word to each glob match. Like almost all of zsh's glob qualifiers, bash has nothing similar.
As thrig already mentioned in a comment:
zsh -c 'prog *.txt(P:-f:)'
This uses the glob qualifier P
which prepends a separate word to each glob match. Like almost all of zsh's glob qualifiers, bash has nothing similar.