Top "Ksh" questions

The KornShell is an open source, POSIX-compatible shell language from AT&T based upon the original Bourne shell.

redirect command output into variable and standard output in ksh

I have some shell command. I would like to write the output to the standard output and save it into …

shell scripting ksh
How do I recursively list all directories at a location, breadth-first?

Breadth-first list is important, here. Also, limiting the depth searched would be nice. $ find . -type d /foo /foo/subfoo /foo/…

linux bash shell ksh
Pipe input into a script

I have written a shell script in ksh to convert a CSV file into Spreadsheet XML file. It takes an …

shell unix pipe ksh
KornShell - Set "-x" (debug) flag globally?

Is there a way to set the debug mode(set -x) on a KornShell (ksh) script globally? Currently it seems …

shell debugging scripting ksh script-debugging
Executing KornShell script

I can't execute my KornShell (ksh) script without the ksh command. I included #!/bin/ksh in the first line of …

shell unix ksh
Comparing strings for equality in ksh

i am testing with the shell script below: #!/bin/ksh -x instance=`echo $1 | cut -d= -f2` if [ $instance == "ALL" ] then …

bash unix shell ksh
How to detect if a script is being sourced

I have a script where I do not want it to call exit if it's being sourced. I thought of …

bash ksh
What does it mean in shell when we put a command inside dollar sign and parentheses: $(command)

I just want to understand following line of code in shell. It is used to get the current working directory. …

bash shell terminal sh ksh
Grab the filename in Unix out of full path

I am trying to get "abc.txt" out of /this/is/could/be/any/path/abc.txt using Unix command. …

bash shell unix ksh
Iterating through a range of ints in ksh?

How can I iterate through a simple range of ints using a for loop in ksh? For example, my script …

shell ksh