host1
/
/var
/tmp
/usr
/data
/fs
/mnt server2:/data1
/mnt1 server1:/data
host2
/
/var
/tmp
/usr
/data
/mnt server2:/data1
host3
/
/var
/tmp
/usr
/data
/fs server3:/data2
/mnt1 server1:/data
host4
/
/var
/usr
/mnt1 server1:/data
If I have a match for /fs and/or /mnt and/or /mnt1 print output like this:
host1 server3:/data2::/fs server1:/data::/mnt1
host2 server2:/data1::/mnt
host3 server3:/data2::/fs server1:/data::/mnt1
host4 server1:/data::/mnt1
/
/var
/tmp
/usr
/data
/fs
/mnt server2:/data1
/mnt1 server1:/data
host2
/
/var
/tmp
/usr
/data
/mnt server2:/data1
host3
/
/var
/tmp
/usr
/data
/fs server3:/data2
/mnt1 server1:/data
host4
/
/var
/usr
/mnt1 server1:/data
If I have a match for /fs and/or /mnt and/or /mnt1 print output like this:
host1 server3:/data2::/fs server1:/data::/mnt1
host2 server2:/data1::/mnt
host3 server3:/data2::/fs server1:/data::/mnt1
host4 server1:/data::/mnt1