Globally Renaming Files in a Directory
April 27, 2014
-------
Globally Renaming Files with Same Extension in a Directory
-------
I frequently need to add a prefix to the file names in a directory from the command line globally. An example would be .wav or .mp3 files in a particular directory. This way, I can distinguish similarly named files from other directories.
I have forgotten how to do it using the mv command. I've also tried the rename command without much luck. I've looked into the two commands' manuals but to no avail. As a matter of fact, one recommended 'rename' example does not work in my Ubuntu 12.04 system.
I would appreciate seeing some simple illustrative examples.
Julianloui
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Krüger
- Solved:
- Last query:
- Last reply: