repo.or.cz
/
linux-2.6
/
linux-acpi-2.6
/
ibm-acpi-2.6.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
dm: preserve bi_io_vec when resubmitting bios
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git]
/
scripts
/
bin_size
blob
43e1b360cee6970b6a22db5111c124e2f397efeb
1
#!/bin/sh
2
3
if
[
$#
=
0
] ;
then
4
echo
Usage
:
$0
file
5
fi
6
7
size_dec
=
`stat -c "%s"
$1
`
8
size_hex_echo_string
=
`printf "%08x"
$size_dec
|
9
sed 's/\(..\)\(..\)\(..\)\(..\)/
\\\\
x\4
\\\\
x\3
\\\\
x\2
\\\\
x\1/g'`
10
/
bin
/
echo -ne
$size_hex_echo_string