How can I safely get the version of ksh? - Unix Linux Stack Exchange KSH_VERSION was not implemented in ksh93 before version 93t It will be set in mksh, pdksh, lksh So for checking the version of ksh, we can try these steps: Checking KSH_VERSION to detect mksh, pdksh, lksh; If first step fails, try a feature that's different between ksh93 and ksh88 86 (Let David Korn show us) With these in mind, I will go with:
scripting - How to use and or conditional in shell script - Unix . . . @Otheus, the [utility is built in ksh (on some systems, bin test is even implemented as a ksh script) [[doesn't invoke the test utility There are subtle variations between every [ test implementations Posix is a standard body
How to compare strings in ksh - Unix Linux Stack Exchange Stack Exchange Network Stack Exchange network consists of 183 Q A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers
ksh - get arguments passed and put it in an array - Unix Linux Stack . . . Note that there are several implementations (and versions thereof) of ksh: AT T ksh88 (as found in most commercial Unices), AT T ksh93 (made open source in 2000, sometimes found as dtksh on commercial Unices and as an optional package on opensource unix-likes), pdksh and its derivatives (MirBSD ksh, OpenBSD ksh) which was the only ksh available
ksh - Shell script not executing - Unix Linux Stack Exchange ksh: ksh_experiment ksh: not found [No such file or directory] Now, cat -v ksh_experiment ksh too produced the same output Also, if I typed vim ksh_experiment ksh, a new file was getting opened As discussed in the answer of the link that I provided, I removed the carriage returns using the command, perl -p -i -e "s \r g" ksh_experiment ksh
ksh - How can we store the output of a command as an array in Unix . . . To assign the separate words that a command outputs to an array in ksh, you may do array=( $( mycommand ) ) This would run mycommand (that awk command in your case), and the output of that command would be split into words on whitespaces (spaces, tabs and newlines by default, which is the contents of the IFS shell variable)