M
Matesax
Guest
Hi,
in BASH script I need to write (append) dword aligned string (that's stored in variable - UTF-8 - aligned by zero char) to one file. And also append two integer variables into this file - with word alignment. (word (2 bytes) + word = dword => I need dword (4 bytes) aligned record) How can I make this in easy way? (dword dword dword dword ... word word dword dword dword ... word word dword ...) (blab lah\0 0xA2B5 0xC4D8 lore m\ ip sum\0 0x1852 ...)
Thank you.
in BASH script I need to write (append) dword aligned string (that's stored in variable - UTF-8 - aligned by zero char) to one file. And also append two integer variables into this file - with word alignment. (word (2 bytes) + word = dword => I need dword (4 bytes) aligned record) How can I make this in easy way? (dword dword dword dword ... word word dword dword dword ... word word dword ...) (blab lah\0 0xA2B5 0xC4D8 lore m\ ip sum\0 0x1852 ...)
Thank you.
Last edited: