Nux!


Home » Repos » Report a problem or request a package » pkgRequest (el6) (mmv 1.0)
pkgRequest (el6) [message #2762] Mon, 17 November 2014 16:11 Go to next message
ongoto is currently offline  ongoto
Messages: 173
Registered: October 2013
Location: California USA
Senior Member
Bulk file renamer

Source:
http:// rpm.pbone.net/index.php3/stat/4/idpl/19491394/dir/pld/com/mm v-1.0.1b-5.i386.rpm.html

About:
http:// mylinuxbook.com/mmv-a-command-line-utility-to-move-copy-link -append-multiple-files-easily/

[Updated on: Mon, 17 November 2014 19:43]

Report message to a moderator

Re: pkgRequest (el6) [message #2763 is a reply to message #2762] Tue, 18 November 2014 08:49 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Added, but also check the "rename" util, eg http://tips.webdesign10.com/how-to-bulk-rename-files-in-linu x-in-the-terminal
Re: pkgRequest (el6) [message #2764 is a reply to message #2763] Tue, 18 November 2014 16:03 Go to previous message
ongoto is currently offline  ongoto
Messages: 173
Registered: October 2013
Location: California USA
Senior Member
Yeah.
I don't have thunar installed but I have Perl. Perl's rename command combined with regex is hard to beat.

There is also a rename command that is part of the util-linux-ng package.
rename from.jpeg to.jpg *.jpeg
and simple stuff like that.

It's no match for Perl rename...but
mmv will let you do things like select files matching a pattern and rename them according to the fields you select; excluding other fields:
mmv "*_*_*_*_*_*" "#2_#3_#4_#6"
12_surnameA_firstname_23_19141115_OS_(32).jpg -> surnameA_firstname_23_OS_(32).jpg
12_surnameB_firstname_23_19141115_OS_(32).jpg -> surnameB_firstname_23_OS_(32).jpg
I think you could swap the order too if you wanted?
#4_#2_#3_#6


Thanks for all your hard work.

[Updated on: Tue, 18 November 2014 21:35]

Report message to a moderator

Previous Topic: libquicktime and x264 incompatible
Next Topic: Menu-bar disappears
Goto Forum:
  


Current Time: Sun Sep 15 16:57:19 BST 2019

Total time taken to generate the page: 0.01104 seconds