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

    Capture multi-line nexec output?

    Joe Garcia

      When I run:

      nexec -e cat /etc/resolv.conf


      It returns a multi-line result:

      search tfayd.com



      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


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