Top "Ksh" questions

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

Monitor folder for new files using unix ksh shell script or perl script and trigger perl script

I've been Googling and Overflowing for a bit and couldn't find anything usable. I need a script that monitors a …

perl unix shell ksh
Scope of variables in KSH

I have written a sample KornShell function to split a String, put it in an array and then print out …

shell unix scripting ksh
Shell script user prompt/input

This is a crude korn shell script that someone else wrote. I don't know much about using shell syntax and …

shell input variables ksh prompt
how to get day of the year in shell?

How can I get the day of the year in shell? date '+%V' will give me the week of …

linux bash shell ksh
How to expand shell variables in a text file?

Consider a ASCII text file (lets say it contains code of a non-shell scripting language): Text_File.msh: spool on …

bash shell unix solaris ksh
How do i replace [] brackets using SED

I have a string that i am want to remove punctuation from. I started with sed 's/[[:punct:]]/ /g' But …

shell replace sed ksh brackets
How to use mailx to send file as text and add extra text to email body?

How to send some text in email along with the contents of the file, don't want to send file as …

shell ksh mailx
How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX?

I am involved in the process of porting a system containing several hundreds of ksh scripts from AIX, Solaris and …

linux solaris ksh aix
Is it necessary to specify traps other than EXIT?

I see a lot of shell scripts that do: trap cmd 0 1 2 3 13 15 # EXIT HUP INT QUIT PIPE TERM In every shell …

bash shell ksh zsh sh
KSH shell script won't execute and returns 127 (not found)

Can anyone enlighten me why the following won't work? $ groups staff btgroup $ ls -l total 64 -rw-rw---- 1 sld248 btgroup 26840 Apr 02 13:39 padaddwip.…

ksh execution return-code