Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
I admit I will never understand regular expressions. Just spent way too long at first in Double Commander Multi Rename Tool and then with rename utility on cli.
I have a directory of audio files downloaded from Youtoob with names like this:
'01 - All Of My Days [toWgmfI5FRA].opus'
'02 - Emily [XrTJ0NIcTDE].opus'
'03 - Ballad Of A Young Man (Official Music Video) [ZdM9ZEltjEs].opus'
I just want to batch remove the bits between square brackets plus the preceding space. More of a learning exercise now than a vital process but I can't let it defeat me!
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”Remember toBACKUP!
aptitude search rename
p arename - automatic audio file renaming tool
p autorenamer - program to rename files to make them sort
p caja-rename - Batch renaming extension for Caja
p golang-github-google-renameio-d - provides a way to atomically create or rep
p gprename - Complete batch renamer for Linux
p ifrename - Rename network interfaces based on various
p krename - powerful batch renamer for KDE
p libdevel-caller-ignorenamespace - module for hiding namespaces from caller()
v libfile-rename-perl -
p mp3rename - Rename mp3 files based on id3tags
p mrename - tool for easy and automatic renaming of ma
p node-gulp-rename - gulp pulgin to rename files
p rename - Perl extension for renaming multiple files
p rename-flac - CLI tool to rename FLAC files
p renameutils - Programs to make file renaming easier
GUI versions offer the preview option, which is good if don't know regular expressions.
There are books of the regular expressions, if you want to study
Thanks but I know how to search for programs. DC Multi Rename has previews and can use regular expressions but I referred to the guide a few times but couldn't work out the correct one. I ended up removing the last 14 characters in each filename rather than regex. DC was not working with [N1:-15] name mask although I'm sure it worked before so I eventually used rename:
I know this might not be the right workflow, but since I use ranger, I'd just mark all songs and use its :bulkrename command.
This actually opens vim and all selected files are shown as 1 file per line. Then I'd just make a quick macro that searches for [, deletes everything within the [], then deletes the [] and moves on to the next line. Then I'll just tell vim to repeat that macro as many times as there are files. When I save and quit vim, ranger renames the files appropriately. If my vim foo were better, I'd permanently store that macro for future use in my .vimrc.
I use ThunarBulkRename and it's superb the only reason I install Thunar at all. Unfortunately apparently it's quite tied to Thunar as one of the Dragora devs looked at splitting it away.
On window managers I usually stick a keybind on it, as on my non Debian systems it lives in /usr/lib/ThunarBulkRename
I'm glad you brought this up as I'm trying to switch to mc as I'm trying to setup a non gui system and need to try and get batch rename working in there. Something to try tonight.
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian
works as the regex in Double Commander Multi Rename Tool as well. I was just missing the dot when I tried it earlier.
That tool is very similar to Thunar's Bulk Rename which I liked when using MX Linux with Xfce several years ago and is the prime reason I installed Double Commander. I've returned to my old favourite DE KDE Plasma now and wasn't going to install Thunar just for that as it was the only thing I liked about Thunar.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”Remember toBACKUP!