From: Lynne Williams Date: Sun, 17 Feb 2013 16:39:23 +0000 (-0500) Subject: Update shell_cheatsheet.md X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c6385e554746ee92439b6cb15f18e2ee96761084;p=swc-modular-shell.git Update shell_cheatsheet.md --- diff --git a/shell_cheatsheet.md b/shell_cheatsheet.md index 04813cd..ea960c5 100644 --- a/shell_cheatsheet.md +++ b/shell_cheatsheet.md @@ -82,7 +82,7 @@ A special kind of redirection is called a pipe and is denoted by `|`. -Example: +##### Example: ls *.md | head | sed -i `s/markdown/software/g` @@ -115,9 +115,18 @@ NEED TO DO VARIABLE ASSIGNMENT FIRST!!!! where, * `for`, `in`, `do`, and `done` are keywords -* `list` contains a list of values separated by spaces. e.g., - list= 1 2 3 4 5 6 - list= Bob Mary Sue Greg +* `list` contains a list of values separated by spaces. e.g. `list` can be replaced by `1 2 3 4 5 6` or by `Bob Mary Sue Greg`. `list` can also be a variable: + + list[0]=Sam + list[1]=Lynne + list[2]=Dhavide + list[3]=Trevor + . + . + . + list[n]=Mark + + *