Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
kernel
/
msm
/
d8f5b9ba82482cab344c2d54c2c487b607e34864
/
.
/
scripts
/
bin_size
blob: 43e1b360cee6970b6a22db5111c124e2f397efeb [
file
] [
log
] [
blame
]
#!/bin/sh
if
[
$
# = 0 ] ; then
echo
Usage
:
$0 file
fi
size_dec
=
`stat -c "%s" $1`
size_hex_echo_string
=
`printf "%08x" $size_dec |
sed 's/\(..\)\(..\)\(..\)\(..\)/\\\\x\4\\\\x\3\\\\x\2\\\\x\1/g'`
/
bin
/
echo
-
ne $size_hex_echo_string