Hi...
I am learning shell scripting for fun and doing some automation 
its very simple but useful for me..
please tell me , how I can improve this code ?
I thought of finding Distro and then installing the one specified for that Distro, but the commands used will work on every distro 
PHP Code:
#!/bin/bash
# simple bash script that will install rar
# vamsi
# http://www.cyberciti.biz/faq/open-rar-file-or-extract-rar-files-under-linux-or-unix/
echo "This script will install rar on your box"
echo "The installation will begin in 5 seconds"
echo "Press Ctrl+C to cancel"
sleep 5
# go to a temp directory
cd /tmp
# detecting the architecture
if $(uname -a | grep 'x86_64'); then
echo "this is 64 bit os, so lets install 64bit winrar"
wget http://rarlab.com/rar/rarlinux-x64-3.8.0.tar.gz
tar -zxvf rarlinux-x64-3.8.0.tar.gz
cd rar
./unrar
else
echo "this is 32 bit os, so lets install 32bit winrar"
wget http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz
tar -zxvf rarlinux-3.8.0.tar.gz
cd rar
./unrar
fi
cp rar unrar /bin
echo "rar sucessfully installed"
Regards