Top "Ksh" questions

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

Bash or KornShell (ksh)?

I am not new to *nix, however lately I have been spending a lot of time at the prompt. My …

bash shell unix scripting ksh
Shell Script: How to write a string to file and to stdout on console?

How to write a string to file and to stdout on console? If I do echo "hello" > logfile.txt …

bash shell command-line sh ksh
how to merge two files consistently line by line

I have two files (file1.txt & file2.txt ) , files are only examples . How to merge the two files , in …

linux perl sed awk ksh
how to send a mail with a message in unix script

New to unix and learning the talk and walk of it. I am writing a script in .ksh and have …

linux email unix ksh
ORA-01741: illegal zero-length identifier

Hi I am using a delete query in my shell script and I am facing this issue. delete from WHITELIST_…

sql oracle ksh
Shortest command to calculate the sum of a column of output on Unix?

I'm sure there is a quick and easy way to calculate the sum of a column of values on Unix …

unix math shell ksh
How to get pid given the process name

Hi I have searched various forums and here as well, I could find some answers for Linux and Mac but …

unix ksh pid ps
How to add text at the end of each line in unix

I am doing certain text processing operations and finally able to get a file something like this india sudan japan …

shell unix awk ksh
Check if file exists in ksh

I wonder why the below tiny script is now working. I created dfFile under /data directory but script does not …

ksh
How to custom display prompt in KornShell to show hostname and current directory?

I am using KornShell (ksh) on Solaris and currently my PS1 env var is: PS1="${HOSTNAME}:\${PWD} \$ " And the prompt …

unix shell environment-variables customization ksh