Tagged Questions
13
votes
5answers
582 views
How to remove the (1) from filenames using the find command
I recently converted all of my FLAC files to a lower sampling rate of 44.1 kHz and bit depth of 24 bits (because iPhone/iPod don't support anything above that) using XLD on my Mac OS 10.7 (Lion).
...
4
votes
4answers
861 views
Recursively rename subdirectories that match a regex
I have a media server with a folder called Series. (/media/Expansion2/Series/)
In it, I have (surprise!) TV series. These are just the show names, e.g., /media/Expansion2/Series/The Big Bang Theory/
...
4
votes
1answer
485 views
Renaming files to have lower case extensions with 'rename'
I'm trying to currently rename a large set of files and have been using quite kludgy methods to do so, such as:
rename 's:(.*)\.MOV:$1.mov:g' *.MOV
rename 's:(.*)\.JPG:$1.jpg:g' *.JPG
What I'd ...
2
votes
1answer
115 views
prepend digit to filenames which begin with digits (with zmv, please)
I have a directory with files named like 19.png, 20.jpeg, and README00.txt
I want to rename these to 119.png, 120.jpeg, and README00.txt.
I would like to do this with zmv as it works well in so many ...
1
vote
3answers
135 views
Why is this Bash command using regex not replacing my brackets?
I have this command to go through all my files in my Music directory, and all subdirectories, and replace any square brackets in the file name with rounded brackets:
find /home/Music/ -depth -name "* ...
1
vote
3answers
128 views
Recursively edit files based on parent directory's name
I'm facing an issue I'm not quite sure how to overcome. I have a large directory with hundreds of folders, all following the naming scheme "a_b_x", with x being a random word. In every one of these ...