ip address

hello
i need a shell sript which show how to find ip address using ping command and all host name are in any txt file.

To find the ip, use
ping -a hostname-variable |awk -F\( '{print $2}'|awk -F\) '{print $1}'

I leave it to you to put into the shell script of your choice.

Can you please re-phrase the question ? I did not understand this one.