Bulk rename files on a linux system

From Andreida
Revision as of 11:27, 16 February 2016 by Andreas (talk | contribs) (Created page with "Attention, not working on each linux system. Use rename which uses the perl syntax, remove the -n to really do the renaming.<br/> The following example would (without the -n)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Attention, not working on each linux system.

Use rename which uses the perl syntax, remove the -n to really do the renaming.
The following example would (without the -n) rename all .htm files to .html:

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