I wish to get only IP address from a command
Easy way is to get it from command
hostname -I | awk '{print $1}'