Dear All,
Is there a way to convert long decimal int value to 4-bytes, using Bourne Shell or any commands from minimal Linux (sed, awk, etc)?
The goal is to calculate size of file and place the 4-byte value before it. I.e:
#!/bin/sh
size=`du filename`
cat <convert $size to 4 bytes> filename >filename
Appreciate your help.
UPD: i have found a part of solution:
...