I am trying to do the following:
Can I write a shell script for this?
It will be great if someone can guide me to achieve this.
Yes you can. I would do it in three steps:
${MY_COOL_SETTING}