bash script for what I had learn