若輸入下列指令,
$ ./my-script .JPG .jpg a.JPG b.JPG c.JPG d.com dir/XX.JPG
則其效果相當於:
==> $ mv a.JPG a.jpg
==> $ mv b.JPG b.jpg
==> $ mv c.JPG c.jpg
==> nothing (the suffix of d.com does not match .JPG)
==> $ mv dir/XX.JPG dir/XX.jpg