fork download
  1. #!/bin/bash
  2.  
  3. HOST_ARCH=$(uname -m)
  4.  
  5. case "$HOST_ARCH" in
  6. x86) HOST_ARCH="x86" ;;
  7. ia64) HOST_ARCH="ia64" ;;
  8. i?86) HOST_ARCH="x86" ;;
  9. amd64) HOST_ARCH="amd64" ;;
  10. x86_64) HOST_ARCH="x86_64" ;;
  11. sparc64) HOST_ARCH="sparc64" ;;
  12. * ) HOST_ARCH="desconhecido" ;;
  13. esac
  14.  
  15. echo
  16. echo "A arquitetura do seu sistema é: $HOST_ARCH"
  17. echo
  18.  
Success #stdin #stdout 0s 4324KB
stdin
Standard input is empty
stdout
A arquitetura do seu sistema é: x86_64