echo 1 "<<" 8 "is" 0x%x 1 << 8 "(hex)"
"string"
), or an
expression. Expressions can be prefixed with a printf-style
format string. The following strings are currently recognized:
%u |
unsigned decimal integer, e.g. 100 is printed as 100 |
%x |
unsigned hexadecimal integer, e.g. 100 is printed as 64 |
0x%x |
like %x , but add 0x prefix,
e.g. 100 is printed as 0x64 |
echo commands have no effect if using the -q option.