2 Replies Latest reply on Sep 18, 2014 12:51 AM by Monoj Padhy

    How to use a grep in a variable

    Jegavelan Sargunan

      How to use the grep in a variable i am trying to get the agent version, agentinfo |grep "Agent Release" this will work  normally but if i want to use it in a variable how to use it


      I am sure this will this not work , where to have the grep the out put in variable I didn't the answer in the forum

      agentversion="$(agentinfo |grep "Agent Release" )"