Using a bash function to determine the CPU architecture: amd64 or i386, x86_64 or i386

References

1. http://askubuntu.com/questions/41332/how-do-i-check-if-i-have-a-32-bit-or-a-64-bit-os
2. http://www.linuxjournal.com/content/return-values-bash-functions

About Gugulethu Ncube

IT enthusiast getting things done.