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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...