I have a script that my operators use as a login profile.
As they need to export their display in order to access the GUI of the data protector program in HPUX machine.
Anyone can advise how I can grep (eg. who -r) the dynamically assigned IP address and automatically put it as a variable in my script. So whenever I login, the script will do a grep of my current IP add and do a replacement of the ip in the script as needed.