0 Replies Latest reply on Mar 2, 2011 12:38 PM by mschwery

    pass variable to sed command

    mschwery

      I’m trying to pass into a sed command a variable for the search argument and I can’t get it to work. The command  “ sed -n -e '/SCIMS*/p'  JBossConfig.properties | more” runs ok. What I’m trying to do is pass in the string I’m searching for, in the command above SCIMS. I tried the command “ sed -n -e '/$INSTANCE_NAME*/p'  JBossConfig.properties | more”, but it didn’t work.