inly the following seems simple enough:
function cp-pattern { for i in $1; do cp $i ${i%$1}$2; done
... but that doesn't work lik... of specially chosen, and quoted arguments like:
cp-pattern '*.txt' .bak
... note how the second pat... ole different approach. Rather than trying to use cp to make a backup of each file under a slightly ch... e and my login ID as a template) and use a simple cp command to copy all my target files into the new