Top "Ksh" questions

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

How can I flush the input buffer in an expect script?

I'm writing an Expect script and am having trouble dealing with the shell prompt (on Linux). My Expect script spawns …

ksh expect
using backreferences regex in sed

I would like to remove multiple spaces in a file with a single character. Example cat kill rat dog kill …

regex unix sed ksh aix
how to SSH Login Without Password

To use sftp in a script without user interaction (non-interactive). For example to login to an anonymous ftp server and …

ssh ksh ssh-keys
set -e and short tests

When I was new to shell scripting, I used a lot of short tests instead of if statements, like false &…

bash shell ksh zsh
File execution with dot space versus dot slash

I am attempting to work with an existing library of code but have encountered an issue. In short, I execute …

linux bash shell operators ksh
escape curly braces in unix shell script

I have a string: {2013/05/01},{2013/05/02},{2013/05/03} I want to append a { at the beginning and a } at the end. The output should …

shell unix character ksh reserved
Best practices for holding passwords in shell / Perl scripts?

I've recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in …

perl oracle bash ksh
Equivalent for typeset -l and typeset -u in LINUX bash?

I'm in the process of porting over a script from HP-UX to LINUX. When I try to source the script, …

linux bash ksh hp-ux
Shell script to stop a java program

Is there a way to stop a java program running using a shell script by knowing the name alone.I …

java shell ksh
KornShell (ksh) wraparound

Okay, I am sure this is simple but it is driving me nuts. I recently went to work on a …

shell unix command-line ksh editing