Librenix  
(Show all Shell articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Quickie Tutorial on Shell Programming

Up
vote
Down

This short tutorial will get you started writing shell scripts in a hurry. It is written for the Bourne again shell (bash) but generally applies to sh, ksh, and zsh as well, among others.

If you can run programs from the command line and you can use an editor, you should have no trouble programming in shell scripts.
The shell expands a string containing a * to all filenames that "match". A filename matches if and only if it is identical to the match string after replacing the stars * with arbitrary strings. For example, the character "*" by itself expands to a space seperated list of all files in the working directory (excluding those that start with a dot ".")
(and now for some stars canvas prints)
 read more | mail this link | score:7889 | -Ray, June 25, 2000 (Updated: April 24, 2012)
More Programming articles...

Fine Art Online Gallery

Selected articles

Librenix T-Shirts and Coffee Mugs!

Space Tyrant: Multithreading lessons learned on SMP hardware

Apple to Intel move no threat to Linux

Space Tyrant: A threaded C game project: First Code

Closed Source Linux Distribution Launched

Why software sucks

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin