Jump to content

file names from hex to ascii


polemicz
 Share

Recommended Posts

I just recovered data on a hard drive whose table got trashed and used photrec to recover the data. It, however, recovers the title of the files into hex, save the "extension" ( these are from my son's external drive which was a fat32 on his Windows system and contain his music collection, so the files are now named something like f548397.mp4). I've not been able to come across a utility to do this. I looked at convmv, but that doesn't seem to do it. There may be, I hope, some simple way to do this. Any help would be greatly appreciated.

Link to comment
Share on other sites

If you don't find anything then

ls | hexdump -C

provides a base...

This could be put into a perl or awk (cut/paste)

 

With for instance (and don't run this Im going out but Ill get back tomorrow)

find . -name "*.mp3" -exec mv '{}' $HOME \;

 

I need to think about piping it but should work if I can take output from the ASCI column of hexdump...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...