mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-09 02:36:41 +07:00
11 lines
240 B
Plaintext
11 lines
240 B
Plaintext
|
#!/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
|