1,885
edits
Changes
→Week 2 (Sept 8) - Bash Scripting Basics I
Announcements/discussion/review:
* Blogging guidelines
* <s>Louis Suarez-Potts - Thursday Sept 11 2:15 pm</s>
* Paul Frields - IRC chat Sept 11 5-6 pm
* Review: shell, commands, arguments
** Relative paths: start with anything else, relative to "current" directory
* Why script?
* Creating a script** Putting commands in a file** The shebang line: <code>#!/bin/bash</code>** Permissions*** Three communities: user-group-other*** Three permissions: read-write-execute**** Permissions [[Scripts on directories*** Symbolic and octal notation*** <code>chmod</code> commandLinux]]**** Relative notation: <code>[augo][+-=Linux Permissions][rwxX][,[...]]</code>*** <code>ls -l</code> command* Redirection** Standard file descriptors*** stdin (0)*** stdout (1)*** stderr (2)*** Mind bender: ''how does'' <code>less</code> ''get keyboard input?''** Output redirection: <code>> >></code>** Input redirection: <code>< <<</code>** Cloning** Pipes*** Filter programs* Result codes* Flow control (part 1): <code>if/then/else/fi</code>
'''TODO'''