Skip to main content
Commonmark migration
Source Link

#qmv

qmv

The command qmv from renameutils opens an editor showing a list of filenames with two colums, separated by a tab. Each row shows one of the filenames, the same in both columns. The right column is representing the new names of the files.
To make changes, edit the names on the right side. In this example, :%s/... or visual block mode are helpful.

Filenames in your editor

$ qmv *.png 

In editor:

image0001.png image0001.png image0002.png image0002.png image0003.png image0003.png ~ ~ ~ ~ "/tmp/user/1000/qmvxWyVMs" 3L, 93C 

Edit names in right column:
(Removing the image prefix from all lines using visual block mode)

image0001.png 0001.png image0002.png 0002.png image0003.png 0003.png ~ ~ ~ ~ :wq 

Log of renaming:

image0001.png -> 0001.png image0002.png -> 0002.png image0003.png -> 0003.png 

(e.g. Ubuntu: apt-get install renameutils)

#qmv

The command qmv from renameutils opens an editor showing a list of filenames with two colums, separated by a tab. Each row shows one of the filenames, the same in both columns. The right column is representing the new names of the files.
To make changes, edit the names on the right side. In this example, :%s/... or visual block mode are helpful.

Filenames in your editor

$ qmv *.png 

In editor:

image0001.png image0001.png image0002.png image0002.png image0003.png image0003.png ~ ~ ~ ~ "/tmp/user/1000/qmvxWyVMs" 3L, 93C 

Edit names in right column:
(Removing the image prefix from all lines using visual block mode)

image0001.png 0001.png image0002.png 0002.png image0003.png 0003.png ~ ~ ~ ~ :wq 

Log of renaming:

image0001.png -> 0001.png image0002.png -> 0002.png image0003.png -> 0003.png 

(e.g. Ubuntu: apt-get install renameutils)

qmv

The command qmv from renameutils opens an editor showing a list of filenames with two colums, separated by a tab. Each row shows one of the filenames, the same in both columns. The right column is representing the new names of the files.
To make changes, edit the names on the right side. In this example, :%s/... or visual block mode are helpful.

Filenames in your editor

$ qmv *.png 

In editor:

image0001.png image0001.png image0002.png image0002.png image0003.png image0003.png ~ ~ ~ ~ "/tmp/user/1000/qmvxWyVMs" 3L, 93C 

Edit names in right column:
(Removing the image prefix from all lines using visual block mode)

image0001.png 0001.png image0002.png 0002.png image0003.png 0003.png ~ ~ ~ ~ :wq 

Log of renaming:

image0001.png -> 0001.png image0002.png -> 0002.png image0003.png -> 0003.png 

(e.g. Ubuntu: apt-get install renameutils)

Source Link
Volker Siegel
  • 17.8k
  • 6
  • 56
  • 81

#qmv

The command qmv from renameutils opens an editor showing a list of filenames with two colums, separated by a tab. Each row shows one of the filenames, the same in both columns. The right column is representing the new names of the files.
To make changes, edit the names on the right side. In this example, :%s/... or visual block mode are helpful.

Filenames in your editor

$ qmv *.png 

In editor:

image0001.png image0001.png image0002.png image0002.png image0003.png image0003.png ~ ~ ~ ~ "/tmp/user/1000/qmvxWyVMs" 3L, 93C 

Edit names in right column:
(Removing the image prefix from all lines using visual block mode)

image0001.png 0001.png image0002.png 0002.png image0003.png 0003.png ~ ~ ~ ~ :wq 

Log of renaming:

image0001.png -> 0001.png image0002.png -> 0002.png image0003.png -> 0003.png 

(e.g. Ubuntu: apt-get install renameutils)