omrsafetyo
May 5th, 2008, 08:11 PM
I am trying to use the following substring expression:
${string:position:length}
Except that I am trying to pass a variable as the length, and I can't quite figure out how to do it. Instead I get an error message:
sub1=${name1:1:${lffn}}: 0403-011 The specified substitution is not valid for this command.
Anyone know if this is possible, and how to do it?
Many thanks.
${string:position:length}
Except that I am trying to pass a variable as the length, and I can't quite figure out how to do it. Instead I get an error message:
sub1=${name1:1:${lffn}}: 0403-011 The specified substitution is not valid for this command.
Anyone know if this is possible, and how to do it?
Many thanks.