My command’s output is something like: 1540 "A B" 6 "C" 119 "D" The first column is always a number, followed by a space, then a double-quoted string. My...
I have a ksh script that returns a long list of values, newline separated, and I want to see only the unique/distinct values. It is possible to do this?...
I have a script where I do not want it to call exit if it’s being sourced. I thought of checking if $0 == bash but this has problems...
To store the output of a command as a variable in sh/ksh/bash, you can do either var=$(command) or var=`command` What’s the difference if any between the two methods? 6...
I am writing a shell script to run under the KornShell (ksh) on AIX. I would like to use the mkdir command to create a directory. But the directory...