[CentOS] Text Proccessing script - advice?