From: Lynne Williams Date: Sun, 17 Feb 2013 16:31:11 +0000 (-0500) Subject: Update shell_cheatsheet.md X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=18d2330c0017b029fabeb4bf1bd590c58a96a2f3;p=swc-workshop.git Update shell_cheatsheet.md --- diff --git a/shell_cheatsheet.md b/shell_cheatsheet.md index 56dad1f..78de734 100644 --- a/shell_cheatsheet.md +++ b/shell_cheatsheet.md @@ -105,6 +105,16 @@ changes all the instances of the word `markdown` to `software` in the first 5 `* ## 5. Loops NEED TO DO VARIABLE ASSIGNMENT FIRST!!!! ### a) How to repeat operations using a loop... + + for varname in list + do + command 1 + command 2 + done + + + + * **`for`** --> `for filename in *.dat do