Questions tagged [mmv]

mmv (multiple move) is a long-time 3rd party Unix command which allows to move/copy/append/link multiple files according to a set of wildcard patterns.

mmv (multiple move) is a long-time 3rd party Unix command which allows to move/copy/append/link multiple files according to a set of wildcard patterns.

The actions are performed safely, i.e. without any unexpected deletion of files due to collisions of target names with existing filenames or with other target names.

It can do on Unix what DOS users are used to be able with e.g. rename *.txt *.text because compared to Unix on DOS it's not the shell but the application which expands the wildcards.

8 questions
8
votes
3 answers

MMV mass file rename

I'm having trouble figuring an mmv pattern. I have a bunch of video files with this pattern: my.program.name.season.NN.episode.NN.-.title.avi and I need to move them to: my.program.name.sNNeNN.title.avi I can't seem to get the right pattern...
Jocala
  • 83
  • 1
  • 3
4
votes
1 answer

Why is my mmv command not overwriting the files?

I have a batch file that, among other things, uses the command mmv to rename some files. The relevant line is like this: mmv "$BASEDIR/files/*.txt" "$BASEDIR/files/#1.strings" In essence it works, but the problem is that it keeps asking me for…
Questioner
  • 1,150
  • 5
  • 21
  • 35
1
vote
2 answers

Rename files with numbers already in file name

I have files with following names starting with water-frames0.gro upto water-frames201.gro water-frames0.gro water-frames119.gro water-frames138.gro water-frames157.gro water-frames116.gro water-frames135.gro water-frames154.gro How do I add…
bhopshang
  • 113
  • 3
1
vote
2 answers

Using mmv, how do you replace every x with y?

So my filename looks like this : Building+a+Container+for+Robust+Conversations.pdf I would like to use mmv to rename it like this : Building_a_Container_for_Robust_Conversations.pdf Or like this : BuildingaContainerforRobustConversations.pdf
ychaouche
  • 945
  • 8
  • 25
1
vote
1 answer

How to properly use mmv and avoid "no match"

My folders look like this: $ ls total 20K drwxr-xr-x 2 ychaouche ychaouche 4.0K Mar 4 2020 cdc-firewall-v1 drwxr-xr-x 2 ychaouche ychaouche 4.0K Mar 4 2020 cdc-firewall-v2 drwxr-xr-x 2 ychaouche ychaouche 4.0K Nov 24 10:40…
ychaouche
  • 945
  • 8
  • 25
0
votes
1 answer

Why are neither rename nor mmv working on my Fedora 35 system?

On my Fedora 35 system neither of the following are working. I have about twenty or so jpg files in a directory, and I wish to add the name of a website to each image after its main title. I am certain that on Linux Mint the rename command worked…
Hektor
  • 109
  • 3
0
votes
1 answer

How to replace a hash pattern inside file and directory names

I've just backed up the notes I have in Notion, and they use hashcodes in the notes names to make them unique apparently. For example, this is might be a note-folder with some notes: Archive e74f698cb73b42c790d08999bdbe47e4 ├── Note 1…
0
votes
1 answer

can mmv rename files by incrementing an index?

Can mmv, a mass move utility, nicely rename files from: foo.txt bar.txt baz.txt to: 1.txt 2.txt 3.txt The man page is intriguing, but I don't quite follow the directions: Rename all *.jpeg files in the current directory to *.jpg: mmv…
Thufir
  • 1,810
  • 6
  • 33
  • 60