Changes

Jump to: navigation, search

ULI101 Week 10

35 bytes added, 22:11, 31 August 2017
Introduction to Shell Scripting
= Introduction to Shell Scripting =
; === Usefulness of Shell programming: Scope ranges from simple day-to-day tasks to large databasedriven CGI applications.===
* Scope ranges from simple day-to-day tasks to large database driven CGI applications.
* Shell-dependent - each shell script is written for a specific shell, such as bash
* First line of each script usually specifies the path to the program which executes the script - <code>#!</code> statement, for example: <code>#!/bin/bash</code>
* Use the which utility to find out what path to use there
* This must be the first line and nothing can precede it, not even a single space
* This line is not necessary if the script will be executed in the default shell of the user
* Any line other than first one starting with a <code># </code> is treated as a comment
= Positional Parameters =
221
edits

Navigation menu