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...

Gallery Wrapped Abstract Art

coding headlines

No Starch Press has published my Perl One-Liners book!

OpenShift Online: a non-developer guide

Detailed Error Handling In Bash

Develop your own Raspberry Pi OS

Introduction to Perl one-liners

bash scripting: Looping through a list

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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