[CentOS] Need help in writing a shell/bash script