Korn shell tutorials

Reading a list of data into a function using a script.

contributed by Jimmy Selix on July 24, 2005 under Korn shell

Well, i’ve been a ksh geek for only prob 2 years now, but my job requires the managing of HUGE amounts of files and data (usually about 6500 files/items per query,set). Managing and querying such large amounts of data by hand is impossible and just a waste of time when you can have a ksh script do this for you! This recipe is just an example of what you can do with some variables, menus, and functions!

 

Checking if a variable is a number in ksh

contributed by u02sgb on October 25, 2004 under Korn shell

Being able to test if a variable is a number in the Korn shell is very useful but not immediately obvious….

 

appending a list of files to one file using xargs command

contributed by Jimmy Selix on September 2, 2004 under Korn shell

This recipe explains how to use the xargs command in ksh to work with multiple files. This recipe will show how to combine 10 files together into one file without manually doing a: cat file1 > bigfile, cat file2 >> bigfile, etc. The uses of this command are wide and very helpful; a great way to work with large amounts of files (also avoids the parameter list is too long message when trying to grep more than 1024 files)

 

Some Common AIX/Unix Commands

contributed by Jimmy Selix on August 13, 2004 under Korn shell

This is more of an ingredients list than a true recipe.
Here are some common AIX commands that i’ve come to love and hate.

 

Creating a kornshell script with text-based menus in VI

contributed by Jimmy Selix on under Korn shell

This recipe give a quick run-through on how to create text based menus for ksh scripts in VI. My experience is with IBM AIX 4.x. This a very, very basic recipe.

 

Set an environment variable in Korn shell (ksh)

contributed by qmchenry on October 11, 2003 under Korn shell
 

Enable vi ksh Command Line Editing

contributed by qmchenry on September 24, 2003 under Korn shell

The Korn shell has the ability to utilize vi editor commands to edit commands in your history. If you are familiar with the vi editor, you will love this feature.