Ok, so what I want ot do is take all files, say *.mp3 from all sub folders within a folder.
Let's say the folder is /home/user/music and there are 100's of sub-folders in music. I want to move all the files to /home/user/mp3
I know that
Code:
mv -rfv /home/user/music/*.mp3 /home/user/mp3
doesn't work as no usage or "r" works with the mv command.
Is there a way to do this? I want to move all mp3, wma, ogg and others to a destination folder.
Also, I have tried using the copy command (with R and r)
Code:
$ cp -Rfv /home/user/music/*.mp3 home/user/mp3/
I know I have successfully copied specific files, recursively, from within a folder and sub-folders to another folder, but can't seem to figure it out again.
Can anyone here help with this?