I have to extract a substring using ksh88. (BTW the simple way of finding the version of ksh $KSH_VERSION is not working for me. I had to use
[ "`echo "\c" | grep c`" ] && echo ksh93 || echo ksh88 I tried using the command echo ${stringvariable : 2: 2} But it says bad substitution. I am new to the Unix world. This is what I did to get the result:
I've logged into Unix using PUTTY and typed the above command. I also tried first ksh command, then my command but still no success. Is there anything I am doing wrong?
Also if I want the substring till end starting from position 2 how to do that?