Hi Lucas_0418,
Thank you so much for your quick reply.If z is always a string what's the use of if block and can u explain what this line mean p=p?RD A [i]: A [i]and what's the use of found.
Am New to shell script.But trying really hard to understand this.
One more thing actually in gsub we will replace search pattern,but we are replacing with x. It means bla-bla-bla-01 will become bla-bla-bla-x and stores it into s.where will num of substitutions value get stored i.e 2 as in your eg
Thanks in advance,
Preethy
---------- Post updated at 12:06 PM ---------- Previous update was at 12:02 PM ----------
Hi Lucas_0418,
Can u explain me about this line
P=P? P FS A [i]: A
[i]Thanks in advance,
preethy