convert .vdi to .raw and .raw to .qcow2

convertor.sh

#!/bin/bash
src_drive=/opt/MIGR__/CARBONARA/
trg_drive=/opt/MIGR__/CARBONARA/

image_name=CARBONARA

echo «SOURCE IMAGE :»$src_drive$image_name.vdi
echo «TARGET IMAGE :»$trg_drive$image_name.qcow2
echo «Start convert to RAW»
qemu-img convert -p -f vdi -O raw $src_drive$image_name.vdi  $src_drive$image_n$
echo «End convert to RAW»
echo «Start convert to qcow2»
qemu-img convert -p -f raw  $src_drive$image_name.raw -O qcow2  $src_drive$imag$
echo «End convert to qcow2»

переименование множества файлов по критерию

$ sudo apt-get install mmv
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
mmv
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28,2 kB of archives.
After this operation, 89,1 kB of additional disk space will be used.
Get:1 http://ua.archive.ubuntu.com/ubuntu/ wily/universe mmv amd64 1.01b-18 [28,2 kB]
Fetched 28,2 kB in 0s (1 017 kB/s)
Selecting previously unselected package mmv.
(Reading database … 345409 files and directories currently installed.)
Preparing to unpack …/mmv_1.01b-18_amd64.deb …
Unpacking mmv (1.01b-18) …
Processing triggers for man-db (2.7.4-1) …
Setting up mmv (1.01b-18) …
gorovoy@gorovoy-ThinkPad-T530:/opt/_SYNC_/WORK/KM/km_dev_repository/km/assets/products$ mmv ‘*.jpg’ ‘#1.jpeg’