Originally Posted by danielbmartin
You are right. I gave a solution without recognizing the question as homework. Shame on me!
Daniel B. Martin
Thanks Daniel, Actually this is my first script. and I only know some basic commands of linux. I was thinking that this code need some looping concept, I had stuck at beginning only, how to define two different file in loop.