There is an advantage to shell not expanding wildcards. It allows for doing: copy *.txt *.bak. To do the same in a shell which expand wildcards requires a loop in the shell, making it harder to run simple commands AND duplicating the same code all over your system.
I wouldn't mind being able to do copy *.txt 's/\.txt$/.bak/'.
In reply to OT: Advantage of not expanding wildcard in the shell
by ikegami
in thread using wildcard character * in perlscript command line
by krusty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |