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

Abstract Art Prints on Canvas

coding headlines

Tutorial: Create an NFS-like Storage Server with GlusterFS on Ubuntu 12.10

E-book: Perl One-Liners Explained

Bash: Use the Test Command for multiple aspects

Perl One-Liners Explained: Handy Regular Expressions

String matching in regular expressions

I wrote my first programming e-book: Awk One-Liners Explained

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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