I have a directory which contains a number of subdirectories with names on the format dir.##. The prefix is always the same, and the suffix is 1-3 digits in a strictly incrementing sequence. Thus, something similar to:
dir.0
dir.1
dir.2
dir.3
...
dir.9
dir.10
dir.11
...
dir.298
dir.299
dir.300
First, I want to delete the first few such directories.
I have a number of tiff files named:
sw.001.tif
sw.002.tif
...
and I want to remove both the '.tif' at the end of each of the files. How can I use the 'rename' command to do this?
I want to rename a lot of files on Mac OS X (10.7.2).. I don't have the perl package for the rename command.
My files have names like "T452-102456-0.png" and I want to delete the "-0" part. I know I can do this action by writing my own php-cli script, but I would like to know of an easier and faster solution.
I have a large directory of music files that is often changing as files and directories come and go.
Good day. I am attempting to use the tool 'rename "regex-rule" files '
I have a group of files zzzzfpa.00nnnnnnnnnnn where n is any number. So I would like to get rid of the zzzz and leave the rest of the file name. Here is what I have tried rename -n 's/zzzz//' zzzzfpa*
I have a directory which contains numbered image files, something like this:
01.png
02.png
03.png
03.svg
04.png
05.png
06.jpg
07.png
08.png
09.png
09.svg
10.png
Sometimes there may be multiple versions of a file in different formats (eg. a png and svg version of the 03 and 09 files above) but the numbers are otherwise consecutive. Typically there are 40-80 such files in each directory.
I have some files that I wish to rename in a single command. The files are names thus. I want the E S Posthumus bit removed from the names and also the 01, 02 ...etc at the start of each file. How do I remove that?
Hi,
I dont know how rename multiple files at the same time. I try several program but thats not work for me because the files I have to rename are emails in .eml format and all the emails dont have the same name so I cannot put things on the fields ''change that'' for ''that''.
I'm new with Linux, sed, and awk but I don't mind challenging myself on new ideas. That being said, I understand the purpose and how to use rename and sed for a common event such as adding a $date or removing a _1234 from all the files.