RosettaCodeData/Task/Host-introspection/UNIX-Shell/host-introspection.sh

6 lines
104 B
Bash

Aamrun$ getconf WORD_BIT
32
Aamrun$ echo -n I | od -to2 | awk 'FNR==1{ print substr($2,6,1)}'
1
Aamrun$