yourfilenames=`ls <folder_path>/*.hex` for g in $yourfilenames do FileName="${g%.*}" echo "Converting: $g" # remove .<extension> if you want it to be just binary xxd -p -r "$g">"${FileName}.<extension>" # Delete the file optionally rm -f "$g" done
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter