Składnia edytuj

rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]


Przykład edytuj

Przykład [1]

rename -v ’s/\.htm$/\.html/’ *.htm

perlexpr edytuj

Składnia wyrażenia Perla :

s/old/new/

W powyższym przykładzie perlexpr jest :


’s/\.htm$/\.html/’

Jest to wyrażenie ujęte w pojedynczy cudzysłów.

"s" jest skrótem od angielskiego substitute czyli po polsku zastąp stare nowym.

Źródła edytuj

  1. How to Bulk Rename Files in Linux (Terminal or GUI) from Webmaster Tips