Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get OS name uname

case $(uname -m) in
x86_64)
    BITS=64
    ;;
i*86)
    BITS=32
    ;;
*)
    BITS=?
    ;;
esac
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #OS #uname
ADD COMMENT
Topic
Name
9+7 =