7 Replies Latest reply on Sep 23, 2014 7:59 AM by Rajeev Gupta

    Substring matching in NSH

    Rajeev Gupta



      I have a requirement where i need to find string for a substring match in NSH.


      I need to find, suppose, that the JOB_NAME does not contain the word 'TEST" in it.

      I have highlighted the part which I require but not able to do exactly in NSH.


      If [ -n "$JOB_NAME" ] && [ "TEST" !~ "$JOB_NAME" ]; then

      echo "This is not a test job"