Aug 23, 2011

Linux: How to change the extension of a bunch of files?


I have a directory full of files ending with .xxx. (,,

I want to change their extensions to .yyy. (Apple.yyy, Orange.yyy, Bannana.yyy)

What’s the quickest way to accomplish this using basic shell commands?


Take a look at the rename command: rename .xxx .yyy *.xxx

Related posts:

  1. Linux renaming files to add _00 after filename before extension
  2. Linux ps command: filter by user AND name
  3. How to rename multiple files by replacing word in file name?
  4. How to bulk rename files to remove an extraneous space from before the extension
  5. How can I recursively change the case of files and folders under bash

Leave a comment