3 ms·
Is Bash really better at wildcard expansion than cmd? I mean, sometimes you don't want to do wildcard expansion in the shell. copy .txt .bak would be much harde
by skocznymroczny 11y ago
Is Bash really better at wildcard expansion than cmd? I mean, sometimes you don't want to do wildcard expansion in the shell. copy .txt .bak would be much harder to write in Bash I suppose.
- dllthomas 11y agoFor the record, I would probably write this: for i in *.txt; do cp "$i" "${i%txt}.bak" done