Shells

TwitterFacebook
Get flash to fully experience Pearltrees
8.4.3. Predefined Shell Variables

Variables (Linux in a Nutshell, 3rd Edition)

http://docstore.mik.ua/orelly/linux/lnut/ch08_04.htm
http://pangea.stanford.edu/computing/unix/programming/shell/expressions.php

Shell Programming

Last revision August 6, 2004 Expressions can be used in assigning values to new variables; as substitutions in command lines in the script; and in flow-of-control statements : if , foreach , while , and switch .
A pipeline of three programs run on a text terminal http://en.wikipedia.org/wiki/Pipeline_(Unix)

Pipeline (Unix)

Redirection is the transferring of standard output to some other destination, such as another program, a file or a printer, instead of the display monitor (which is its default destination). Standard output, sometimes abbreviated stdout , is the destination of the output from command line (i.e., all-text mode) programs in Unix-like operating systems. http://www.linfo.org/pipes.html

All about pipes, by The Linux Information Project (LINFO)

http://en.wikipedia.org/wiki/Shell_(computing) A shell is software that provides an interface for users of an operating system to access the services of a kernel .

Shell (computing)

tcsh and sh shell windows on a Mac OS X desktop. http://en.wikipedia.org/wiki/Unix_shell

Unix shell

C shell

http://en.wikipedia.org/wiki/C_shell The C shell ( csh or the improved version, tcsh , on most machines) is a Unix shell that was created by Bill Joy while a graduate student at University of California, Berkeley in the late 1970s. It has been distributed widely, beginning with the 2BSD release of the BSD Unix system that Joy began distributing in 1978. [ 2 ] [ 3 ] Other early contributors to the ideas or the code were Michael Ubell, Eric Allman , Mike O'Brien and Jim Kulp. [ 4 ]

csh(1

Name http://linux.die.net/man/1/csh
http://en.wikipedia.org/wiki/Here_document#Unix_Shells

Here document

A here document (also called a here-document , a heredoc , a hereis , a here-string or a here-script ) is a way of specifying a string literal in command line shells including Unix shells ( sh , csh , ksh , Bash and zsh ) and in programming or scripting languages such as Perl , PHP , Python , PowerShell and Ruby . It preserves the line breaks and other whitespace (including indentation) in the text. Some languages allow variable substitution and command substitution inside the string.

CSH Scripting Basics

http://www.csem.duke.edu/Cluster/csh_basics.htm The foreach line loops through all entries in the paren list, setting the variable l to each one and then executing the loop body.
This is a collection of useful one-line csh-commands and short multi-line contructs, intended to give some practical hints to both novice and veteran csh and sh users.

Csh One-Liners

tcsh

tcsh ( pronunciation: / ˌ t iː ˈ s iː ʃ ɛ l / "tee-cee-shell", / ˈ t iː ʃ ɛ l / "tee-shell", or as an acronym "tee cee ess aitch") is a Unix shell based on and compatible with the C shell (csh).

Introduction to Named Pipes

One of the fundamental features that makes Linux and other Unices useful is the “pipe”. Pipes allow separate processes to communicate without having been designed explicitly to work together.