I recently recovered a drive that was corrupted. it has a ton of extra files I do not need but I do need to copy files by extension over to the new location, eg: .jpg .png .mov .mp4 .wav .pdf .doc ext, ther are held in multiple sub directories along with a lot of crap files. like .java and .txts
Asked
Active
Viewed 387 times
3 Answers
0
Open a terminal
cd /media/drew/recovered-drive/home/drew
cp -r *.jpg /home/drew/Pictures
cp -r *.mov /home/drew/Videos
etc...
Does this help?
penner
- 591
- 1
- 8
- 15
0
Using rsync -avm --include='*.ext' -f 'hide,! */' "dir" "dir", I completed the task and made a .sh script duplicating the method for the other extensions.
Martin Thornton
- 5,996
- 12
- 32
- 43
Drew
- 601