3 Replies Latest reply on Oct 22, 2013 6:44 PM by Bill Robinson

    Capture multi-line nexec output?


      When I run:

      nexec -e cat /etc/resolv.conf

       

      It returns a multi-line result:

      search tfayd.com

      nameserver 127.0.0.1

       

      When I try to capture this into a variable with:

      NRESULT=`nexec -e cat /etc/resolv.conf`

       

      When I echo the variable back it just gives me on continuous line:

      echo $NRESULT

      search tfayd.com nameserver 127.0.0.1

       

      How do I capture this as a multi-line value?