UNIX shell tutorials

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

Contributed by seamonkey420 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!

Comments
 

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….

Comments
 

appending a list of files to one file using xargs command

Contributed by seamonkey420 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)

Comments
 

Some Common AIX/Unix Commands

Contributed by seamonkey420 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.

Comments
 

Creating a kornshell script with text-based menus in VI

Contributed by seamonkey420 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.

Comments
 

Set environment variables in Bourne shell (sh)

Contributed by qmchenry on October 11, 2003 under Bourne shell

Comments
 

Set an environment variable in Korn shell (ksh)

Contributed by qmchenry on under Korn shell

Comments
 

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.

Comments