Convert Hex File To Binary With Extension

PHOTO EMBED

Fri Dec 16 2022 07:40:54 GMT+0000 (Coordinated Universal Time)

Saved by @HristoT #c#

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
content_copyCOPY