#!/bin/bash
# currentMountList is what nfs file systems mounted by server
for line in $(cat servers.txt)
do
echo $line `ssh $line mount | grep nfs | awk '{print $1, $3}'`
done
what I need is output that looks like
<server1><mount1summary><mount1details>Â
<server1><mount2summary><mount2details>Â
what I get is <server1><mount1summary><mount1details><mount2summary><mount2details>
Know it's simple but can't see the answer