From c6385e554746ee92439b6cb15f18e2ee96761084 Mon Sep 17 00:00:00 2001 From: Lynne Williams Date: Sun, 17 Feb 2013 11:39:23 -0500 Subject: [PATCH] Update shell_cheatsheet.md --- shell_cheatsheet.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 + + * -- 2.26.2