How to get the second column from command output?
My command’s output is something like: 1540 “A B” 6 “C” 119 “D” The first column is always a number, followed by a … Read more
My command’s output is something like: 1540 “A B” 6 “C” 119 “D” The first column is always a number, followed by a … Read more
I have a ksh script that returns a long list of values, newline separated, and I want to see only the unique/distinct values. … Read more
I have a script where I do not want it to call exit if it’s being sourced. I thought of checking if $0 … Read more
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 … Read more
I am writing a shell script to run under the KornShell (ksh) on AIX. I would like to use the mkdir command to … Read more