| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <HTML |
| 3 | ><HEAD |
| 4 | ><TITLE |
| 5 | >Introduction</TITLE |
| 6 | ><META |
| 7 | NAME="GENERATOR" |
| 8 | CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ |
| 9 | "><LINK |
| 10 | REL="HOME" |
| 11 | TITLE="Advanced Bash-Scripting Guide" |
| 12 | HREF="index.html"><LINK |
| 13 | REL="PREVIOUS" |
| 14 | TITLE="Advanced Bash-Scripting Guide" |
| 15 | HREF="index.html"><LINK |
| 16 | REL="NEXT" |
| 17 | TITLE="Shell Programming!" |
| 18 | HREF="why-shell.html"><META |
| 19 | HTTP-EQUIV="Content-Style-Type" |
| 20 | CONTENT="text/css"><LINK |
| 21 | REL="stylesheet" |
| 22 | HREF="common/kde-common.css" |
| 23 | TYPE="text/css"><META |
| 24 | HTTP-EQUIV="Content-Type" |
| 25 | CONTENT="text/html; charset=iso-8859-1"><META |
| 26 | HTTP-EQUIV="Content-Language" |
| 27 | CONTENT="en"><LINK |
| 28 | REL="stylesheet" |
| 29 | HREF="common/kde-localised.css" |
| 30 | TYPE="text/css" |
| 31 | TITLE="KDE-English"><LINK |
| 32 | REL="stylesheet" |
| 33 | HREF="common/kde-default.css" |
| 34 | TYPE="text/css" |
| 35 | TITLE="KDE-Default"></HEAD |
| 36 | ><BODY |
| 37 | CLASS="PART" |
| 38 | BGCOLOR="#FFFFFF" |
| 39 | TEXT="#000000" |
| 40 | LINK="#AA0000" |
| 41 | VLINK="#AA0055" |
| 42 | ALINK="#AA0000" |
| 43 | STYLE="font-family: sans-serif;" |
| 44 | ><DIV |
| 45 | CLASS="NAVHEADER" |
| 46 | ><TABLE |
| 47 | SUMMARY="Header navigation table" |
| 48 | WIDTH="100%" |
| 49 | BORDER="0" |
| 50 | CELLPADDING="0" |
| 51 | CELLSPACING="0" |
| 52 | ><TR |
| 53 | ><TH |
| 54 | COLSPAN="3" |
| 55 | ALIGN="center" |
| 56 | >Advanced Bash-Scripting Guide: An in-depth exploration of the art of shell scripting</TH |
| 57 | ></TR |
| 58 | ><TR |
| 59 | ><TD |
| 60 | WIDTH="10%" |
| 61 | ALIGN="left" |
| 62 | VALIGN="bottom" |
| 63 | ><A |
| 64 | HREF="index.html" |
| 65 | ACCESSKEY="P" |
| 66 | >Prev</A |
| 67 | ></TD |
| 68 | ><TD |
| 69 | WIDTH="80%" |
| 70 | ALIGN="center" |
| 71 | VALIGN="bottom" |
| 72 | ></TD |
| 73 | ><TD |
| 74 | WIDTH="10%" |
| 75 | ALIGN="right" |
| 76 | VALIGN="bottom" |
| 77 | ><A |
| 78 | HREF="why-shell.html" |
| 79 | ACCESSKEY="N" |
| 80 | >Next</A |
| 81 | ></TD |
| 82 | ></TR |
| 83 | ></TABLE |
| 84 | ><HR |
| 85 | ALIGN="LEFT" |
| 86 | WIDTH="100%"></DIV |
| 87 | ><DIV |
| 88 | CLASS="PART" |
| 89 | ><A |
| 90 | NAME="PART1" |
| 91 | ></A |
| 92 | ><DIV |
| 93 | CLASS="TITLEPAGE" |
| 94 | ><H1 |
| 95 | CLASS="TITLE" |
| 96 | >Part 1. Introduction</H1 |
| 97 | ><DIV |
| 98 | CLASS="PARTINTRO" |
| 99 | ><A |
| 100 | NAME="AEN43" |
| 101 | ></A |
| 102 | ><TABLE |
| 103 | BORDER="0" |
| 104 | WIDTH="100%" |
| 105 | CELLSPACING="0" |
| 106 | CELLPADDING="0" |
| 107 | CLASS="EPIGRAPH" |
| 108 | ><TR |
| 109 | ><TD |
| 110 | WIDTH="45%" |
| 111 | > </TD |
| 112 | ><TD |
| 113 | WIDTH="45%" |
| 114 | ALIGN="LEFT" |
| 115 | VALIGN="TOP" |
| 116 | ><I |
| 117 | ><P |
| 118 | ><I |
| 119 | >Script: <SPAN |
| 120 | CLASS="emphasis" |
| 121 | ><I |
| 122 | CLASS="EMPHASIS" |
| 123 | >A writing; a written |
| 124 | document. [Obs.]</I |
| 125 | ></SPAN |
| 126 | ></I |
| 127 | ></P |
| 128 | ><P |
| 129 | ><I |
| 130 | >--<SPAN |
| 131 | CLASS="emphasis" |
| 132 | ><I |
| 133 | CLASS="EMPHASIS" |
| 134 | >Webster's Dictionary</I |
| 135 | ></SPAN |
| 136 | >, 1913 ed.</I |
| 137 | ></P |
| 138 | ></I |
| 139 | ></TD |
| 140 | ></TR |
| 141 | ></TABLE |
| 142 | ><P |
| 143 | ><A |
| 144 | NAME="WHATSASCRIPT" |
| 145 | ></A |
| 146 | ></P |
| 147 | ><P |
| 148 | >The shell is a command interpreter. More than just the |
| 149 | insulating layer between the operating system kernel and the user, |
| 150 | it's also a fairly powerful programming language. A shell program, |
| 151 | called a <I |
| 152 | CLASS="FIRSTTERM" |
| 153 | >script</I |
| 154 | >, is an easy-to-use tool for |
| 155 | building applications by <SPAN |
| 156 | CLASS="QUOTE" |
| 157 | >"gluing together"</SPAN |
| 158 | > system |
| 159 | calls, tools, utilities, and compiled binaries. Virtually the |
| 160 | entire repertoire of UNIX commands, utilities, and tools is |
| 161 | available for invocation by a shell script. If that were |
| 162 | not enough, internal shell commands, such as testing and loop |
| 163 | constructs, lend additional power and flexibility to scripts. |
| 164 | Shell scripts are especially well suited for administrative |
| 165 | system tasks and other routine repetitive tasks not requiring the |
| 166 | bells and whistles of a full-blown tightly structured programming |
| 167 | language.</P |
| 168 | ></DIV |
| 169 | ><DIV |
| 170 | CLASS="TOC" |
| 171 | ><DL |
| 172 | ><DT |
| 173 | ><B |
| 174 | >Table of Contents</B |
| 175 | ></DT |
| 176 | ><DT |
| 177 | >1. <A |
| 178 | HREF="why-shell.html" |
| 179 | >Shell Programming!</A |
| 180 | ></DT |
| 181 | ><DT |
| 182 | >2. <A |
| 183 | HREF="sha-bang.html" |
| 184 | >Starting Off With a Sha-Bang</A |
| 185 | ></DT |
| 186 | ></DL |
| 187 | ></DIV |
| 188 | ></DIV |
| 189 | ></DIV |
| 190 | ><DIV |
| 191 | CLASS="NAVFOOTER" |
| 192 | ><HR |
| 193 | ALIGN="LEFT" |
| 194 | WIDTH="100%"><TABLE |
| 195 | SUMMARY="Footer navigation table" |
| 196 | WIDTH="100%" |
| 197 | BORDER="0" |
| 198 | CELLPADDING="0" |
| 199 | CELLSPACING="0" |
| 200 | ><TR |
| 201 | ><TD |
| 202 | WIDTH="33%" |
| 203 | ALIGN="left" |
| 204 | VALIGN="top" |
| 205 | ><A |
| 206 | HREF="index.html" |
| 207 | ACCESSKEY="P" |
| 208 | >Prev</A |
| 209 | ></TD |
| 210 | ><TD |
| 211 | WIDTH="34%" |
| 212 | ALIGN="center" |
| 213 | VALIGN="top" |
| 214 | ><A |
| 215 | HREF="index.html" |
| 216 | ACCESSKEY="H" |
| 217 | >Home</A |
| 218 | ></TD |
| 219 | ><TD |
| 220 | WIDTH="33%" |
| 221 | ALIGN="right" |
| 222 | VALIGN="top" |
| 223 | ><A |
| 224 | HREF="why-shell.html" |
| 225 | ACCESSKEY="N" |
| 226 | >Next</A |
| 227 | ></TD |
| 228 | ></TR |
| 229 | ><TR |
| 230 | ><TD |
| 231 | WIDTH="33%" |
| 232 | ALIGN="left" |
| 233 | VALIGN="top" |
| 234 | >Advanced Bash-Scripting Guide</TD |
| 235 | ><TD |
| 236 | WIDTH="34%" |
| 237 | ALIGN="center" |
| 238 | VALIGN="top" |
| 239 | > </TD |
| 240 | ><TD |
| 241 | WIDTH="33%" |
| 242 | ALIGN="right" |
| 243 | VALIGN="top" |
| 244 | >Shell Programming!</TD |
| 245 | ></TR |
| 246 | ></TABLE |
| 247 | ></DIV |
| 248 | ></BODY |
| 249 | ></HTML |
| 250 | > |