command line - Bulk rename files - Ask Ubuntu
i have number of files:
10.3.100.179_01_20161018_230014_5335.jpg 10.3.100.179_01_20161018_231514_0814.jpg 10.3.100.179_01_20161018_233014_5706.jpg 10.3.100.179_01_20161018_234514_0896.jpg 10.3.100.179_01_20161018_230114_5395.jpg 10.3.100.179_01_20161018_231614_1145.jpg 10.3.100.179_01_20161018_233114_6047.jpg 10.3.100.179_01_20161018_234614_0547.jpg 10.3.100.179_01_20161018_230114_5492.jpg 10.3.100.179_01_20161018_231614_1264.jpg 10.3.100.179_01_20161018_233114_6146.jpg 10.3.100.179_01_20161018_234614_0658.jpg 10.3.100.179_01_20161018_230214_5630.jpg 10.3.100.179_01_20161018_231714_7135.jpg
i want rename format:
10.4.100.135_01_20161013131108389_timing.jpg 10.4.100.135_01_20161013131111390_timing.jpg 10.4.100.135_01_20161013131114401_timing.jpg 10.4.100.135_01_20161013131117431_timing.jpg 10.4.100.135_01_20161013131120418_timing.jpg 10.4.100.135_01_20161013131123461_timing.jpg 10.4.100.135_01_20161013131126511_timing.jpg
it needs remove _
in timestamp , add _timing
.
install renameutils
, use qmv
favorite text editor.
qmv
loads names in editor , when save , close applies changes actual files. if changes inconsistent (e.g. 2 files same name) abort without touching anything. handles circular renames correctly.
i do:
$ qmv -f
so shows 1 column of names (do: destination-only). here's how looks:
if combine multiple cursors of sublimetext, atom or visual studio code, makes nice , powerful tool bulk renaming. instance, atom, editor="atom -w" qmv -f do
.
Comments
Post a Comment