This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
unix_survival [2020/04/08 23:09] joshd |
unix_survival [2020/04/08 23:16] (current) joshd |
||
---|---|---|---|
Line 152: | Line 152: | ||
** Shell Programming ** | ** Shell Programming ** | ||
- | The shell itself is programmable via /shell scripts/ | + | The shell itself is programmable via /shell scripts/. A shell script can invoke any of the standard UNIX tools as well as other shell scripts, and can make use of control constructs, including loops and comparisons. As with C, a complete tutorial is beyond the scope of this page but we'll provide a few examples to get you started. |
As with the C examples above, we'll use //ed// to create our source files. | As with the C examples above, we'll use //ed// to create our source files. | ||
Line 168: | Line 168: | ||
</ | </ | ||
- | The first line (//# | + | The first line (//# |
Now we've created the script, and there it is on disk: | Now we've created the script, and there it is on disk: | ||