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:7825 | -Ray, June 25, 2000 (Updated: April 24, 2012)
More Programming articles...

Buy Large Wall Art Prints

coding headlines

OpenShift Online: a non-developer guide

Detailed Error Handling In Bash

Unix: Shell Script Wrapper Examples

Introduction to Perl one-liners

bash scripting: Looping through a list

Perl One-Liners Explained: Handy Regular Expressions

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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