Greetings all,
Unix rookie here, just diving into ksh scripting for the first time.
My question may seem confusing but please bear with me:
If I'm understanding everything I'm reading properly, it seems like the ksh language itself doesn't have a lot of string manipulation functions of its own - as a matter of fact all it really seems to have is variables, arrays, and control flow (i.e. loops, if/else/fi etc.)
Therefore, if one wants to write a ksh script to do, for example, extensive string manipulation, validation, reporting etc., one MUST make use of a utility like awk, or sed, or grep, or even something simple like cut to manipulate strings, and use something like command substitution to assign the return value to a variable, i.e.
sMyString1='hello,hi,what's up?'
sMyString2 = (echo $sMyString1 | cut -d',' -f2)
and then sMyString2 would be "hi"
I deviated from my original question a bit there.
Basically, I just want to make sure I'm understanding this correctly that ksh itself doesn't really have a great deal of built-in commands and functions and that you really do have to avail yourself of built-in (or downloaded/installed) unix programs and command substitution/redirection to do any complex programming.
Does it seem like I'm "getting it"?
Thanks buckets
DTXCF