Bourne/bash shell scripts: string comparison
Brief tutorial describing how to do string comparisons. Recently updated thanks to comments from our users.
Category Bourne shell scripting
Mac OSX: Delete a User Account
Deleting a user account is neat and clean with Mac OS X. This tech-recipe describes the procedure and consequences of deleting a user.
Category Mac system administration
Solve PHP Fatal Error: Allowed memory size of 8388608 bytes exhausted (tried…
This error message can spring up in a previously functional PHP script when the memory requirements exceed the default 8 MB limit. However, do not fret because this is an easy problem to overcome.
Category PHP programming
Java while-do and do-while loop syntax
The while loop in Java allows a loop block to be executed an arbitrary number of times until a condition is met. This tech-recipe shows the basic syntax of the Java while loop.
Category Java programming
Java for Loop Iteration Syntax
The for loop provides a simple mechanism for repeating a code block a fixed number of times or for iterating through a set of values.
Category Java programming
Java switch/case statement syntax
The switch statement in Java provides a convenient method for branching a program based on a number of conditionals. This tech-recipe describes the use of the Java switch statement.
Category Java programming
Java J2SE Hello World Sample Program
The Hello World program prints Hello World to the screen. It has long been a staple first application for a programmer trying out a new programming language. This tech-recipe describes the steps involved in compiling and running a simple Hello World program in Java.
Category Java programming
Solaris: Create a Mount Point
Creating a mount point is a trivial, yet poorly documented operation. This tech-recipe describes creating a mount point appropriate for use with the mount command to mount a filesystem, cdrom, etc.
Category Solaris system administration
Using Variables in Windows Batch Files
Regardless of the scripting language, the use of variables can greatly enhance the functionality of a script. This tech-recipe demonstrates basic use of variables in MS-DOS or Windows batch files.
Category Batch file programming
UNIX Recursive Directory Listing
When listing the contents of a directory and all subdirectories, a recursive listing is sometimes useful. This tech-recipe describes techniques for listing files recursively.
Category UNIX