Rex's tutorials

Solaris: Create a mount point

Contributed by Rex on August 31, 2004 under Solaris system administration

Creating a mount point is a trivial yet poorly documented operation. This recipe describes creating a mount point appropriate for use with the mount command to mount a filesystem, cdrom, etc.

Comments Continue reading... 
 

Using variables in Windows batch files

Contributed by Rex on August 29, 2004 under Batch file programming

Regardless of the scripting language, the use of variables can greatly enhance the functionality of a script. This recipe demonstrated basic use of variables in MS-DOS or Windows batch files.

Comments Continue reading... 
 

UNIX recursive directory listing

Contributed by Rex on August 25, 2004 under UNIX

Listing the contents of a directory and all subdirectories, a recursive listing, is sometimes useful. This recipe describes some techniques for listing files recursively

Comments Continue reading... 
 

Bourne/bash shell script functions

Contributed by Rex on August 5, 2004 under Bourne shell scripting

Writing functions can greatly simplify a program. If a chunk of code is used multiple times in different parts of a script, the code can be enclosed within a function and run using only the function name.

Comments Continue reading... 
 

Determine current file position in vi or vim

Contributed by Rex on February 16, 2004 under UNIX

Comments Continue reading... 
 

Move or jump to specific lines in vi

Contributed by Rex on under UNIX

Navigating large files is an important capability when using any editor. The vi editor makes it easy to move around.

Comments Continue reading... 
 

Show line numbers in vi or vim

Contributed by Rex on under UNIX

Displaying line numbers while editing a file can be handy. This recipe describes how to turn on and off the display of line numbers in vi and vim.

Comments Continue reading... 
 

Checkout files from CVS

Contributed by Rex on January 12, 2004 under UNIX software

Version control systems are an important infrastructure component not only in software development but also in other contexts such as controlling changes to manuscripts or computer system configuration files.

Comments Continue reading...