How I can to print only the list of the IP's ( in the end of the lines ) , from mount output
mount
netapp64:/lunggg/OracleTeam/OracleCDs on /oracds type nfs (rw,fg,hard,nointr,nolock,rsize=32768,wsize=32768,tcp,nfsvers=3,timeo=60,addr=12.156.0.212)
netapp74:/lunggg/qcdet_nfs on /applic/oradata/qcdev type nfs (rw,bg,hard,nolock,nointr,tcp,nfsvers=3,timeo=600,rsize=32768,wsize=368,addr=112.166.60.12)
netapp23:/lunggg/qcts_nfs on /applic/oradata/qctst type nfs (rw,bg,hard,nolock,nointr,tcp,nfsvers=3,timeo=600,rsize=32768,wsize=368,addr=123.10.10.12)
example what I need to get:
12.156.0.212
112.166.60.12
123.10.10.12
remark - I think that IP from mount could be in different fields so need to capture the addr=xxx.xxx.xxx.xxx
mount | grep -Po '\baddr=\K[0-9.]{7,}'
mount | grep 'addr'