2 Replies Latest reply on Jul 27, 2015 1:59 PM by Yanick Girouard

    NSH Query

    Nikhil Sureka

      Hi.

       

      While concatenating the strings, the second echo gives error. Input is a csv file.

       

      while IFS=, read -r SERVERNAME1 SERVERNAME2;

        do

        s1=`echo $SERVERNAME1 | tr -d '\n'`

        echo CL_${s1}_JOB1

      s2=`echo $SERVERNAME2 | tr -d '\n'`

      echo CL_${s2}_JOB1

      done< $FILEPATH

       

       

      Output:

      CL_SERVER1_JOB

      JOBERVER2

      XXXX%