Skip to main content

Thread: Move files under subdirectories into one folder?


hey guys,

right have mp3s scattered on 1 of hard drives in sub-directories. iterate through of subdirectories , move matching *.mp3 single specified directory. goal mp3s 1 folder.

there simple way through terminal?

thanks,

dillon

code:
find /home/user/music -iname '*.mp3' -exec mv '{}' /home/user/backup/ \;


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Move files under subdirectories into one folder?


Ubuntu

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support