Scripting and Shell Programming

The following commands include shells and programs useful in shell scripts.

bash

Bourne Again shell (default).

csh

C shell.

echo

Repeats command-line arguments on standard output.

expr

Performs arithmetic and comparisons.

line

Reads a line of input.

lockfile

Makes sure that a file is accessed by only one script at a time.

perl

Practical Extraction and Report Language, Version 5.8.1 RC3.

php

PHP scripting language Version 4.3.2, used for web development.

printf

Formats and prints command-line arguments.

python

Python scripting language, Version 2.3.

ruby

Ruby scripting language, Version 1.6.8.

sh

Standard Unix shell.

sleep

Causes a pause during processing.

tclsh

Tool Command Language (Tcl) shell, Version 8.4.

tcsh

Tenex C shell.

test

Command that tests a condition.

xargs

Command that reads arguments from standard input and passes them to a command.

zsh

Enhanced Unix shell.

Get Mac OS X Panther for Unix Geeks, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.