I am trying to get two input from a file .
!/bin/bash
echo "enter clientname"
read clientname
echo print|nsradmin -s $clientname -p390113|egrep 'NetWorker version|IP address'>> output_$clientname
the content of the file would be :
$ cat test_new1
NetWorker version: 7.6.3.2.Build.860;
IP address: xxx.xxx.xxx.xx;
I want to grab "IP address:" to provide input to my rest of the script
reasult2=$(nslookup $ipaddress)