perhaps this could help as a basis username@slowball ~ $ echo 74 65 78 74 75 72 65 73 5C 61 61 61 61 61 61 5F 4E 2E 64 64 73 00 00 00 00 00 00 00 | sed 's/00 00 00 00 00 00 00/00 00 00 00 2C 00 00 00/' | sed -r 's/(.*)(00 00 00 00 2C 00 00 00)/\1\2\1/'| sed 's/5F 4E 2E 64 64 73/5F 50 2E 64 64 73/g' | xxd -r -p textures\aaaaaa_P.dds,textures\aaaaaa_P.dds username@slowball ~ $ After the xxd -r -p you can put >a.a to write it to a file called a.a