![]() |
Sorting Photorec results
Hi all,
Is there a quick and easy way of sorting the results of files recovered by Photorec? I'm only after a few types of files from the 30+ folders of 500+ files per folder? Ideally I'd like each file type in a different folder. Is that fairly simple to achieve? I'm hoping a bash script somehow? Thanks |
For those of us that don't have Photorec but may be able to help, it would be helpful if you posted a short illustrative sample of the Photorec output you want to sort -- or a full output somewhere like pastebin
|
Hi, a sample should get the point of how it sorts it.
So photorec uses some sort of black magic to recover 'deleted' files, or in my case a SD Card with no partition table. It recovers them into folder like this: Code:
$ pwdSo in recup_dir.38 a short selection of files using "ls" is: Code:
f21331411.txt f21357080.txt f21375205.txt f21380160.jpg f23113738.javaI hope that clarifies my problem a little bit, apologies if it's a little too simple or not complicated enough. I'm not great with computers so it's hard to know what's common knowledge and what's not, I hope I haven't seemed patronising. |
* If you are certain your SD cards contained only image files with certain extensions then I would backup the results and rerun Photorec with only those specific image file filters enabled.
* For sorting see http://www.cgsecurity.org/wiki/After_Using_PhotoRec Note the script below looks only at the string after the last dot and it will create directories like /home/user/Photorec/txt, /home/user/Photorec/jpg, etc, etc: Code:
cd /home/user/Photorec |
Fantastic, thank you very much for the link and the script.
Unfortunately, I wasn't 100% sure that my photos would not be saved as .jpg, .JPG, .JPEG etc so that's why I just recovered everything. Now I've reused the card I can't re-photorec it, but they're not sorted into a manageable order. Thanks again :) |
Quote:
Quote:
Code:
cd /home/user/Photorec |
Quote:
Thanks :) |
| All times are GMT -5. The time now is 04:34 AM. |