OK, brief background. I accidently rm -rf my usb external hard drive. Right now I am using Photorec to recover the files. (I accidently deleted 800GB. Its my personal files. Mostly it was media, but I also had other stuff such as pdf, xls, jpg, doc etc.)
So, I attached another external hard drive with 350 GB left to start recover since that is all I got. The files are being dumped right now and I know I will exhaust it soon.
I need some help with automating some of the recovery. The recovery process is dumping files in folders. Each one starts with recup_dir.x
Each of these folders has my files. Right now I want to do something along these lines in each folder; navigate to each folder and copy all the pdf,doc,xls,jpg files to my comp hd and delete them from the other external harddrive so I can go to sleep and hopefully it will at least recover most of the needed files. Can some one help :(
cp *.docx /home/me/Desktop/docx/ || cp *.doc /home/me/Desktop/docx/ || cp *.xls /home/me/Desktop/xls/ || cp *.pdf /home/me/Desktop/pdf/ || cp *.jpg /home/me/Desktop/jpg/ && rm *.doc *.docx *.pdf *.jpg *.xls