The starter of the thread is still learning and a newbee in Linux.
If he/she is trying to learn scripting, he/she is not helped with these answers, right?

It's preferable to read some stuff first...