How to extract NFS information from mount on Linux and Solaris?
问题 I need to extract NFS mount information using mount on Linux (RHEL 4/5) and Solaris (Solaris 10) systems. As this is part of an SSH command, the extraction needs to happen in one line. Unfortunately, Linux and Solaris display the mountpoint at different parts of the line: Linux: 10.0.0.1:/remote/export on /local/mountpoint otherstuff Solaris: /local/mountpoint on 10.0.0.1:/remote/export otherstuff I would like to get the following space separated output 10.0.0.1 /remote/export /local