2 ms·For the record, I would probably write this: for i in *.txt; do cp "$i" "${i%txt}.bak" doneby dllthomas 11y agoFor the record, I would probably write this: for i in *.txt; do cp "$i" "${i%txt}.bak" done