From 18d2330c0017b029fabeb4bf1bd590c58a96a2f3 Mon Sep 17 00:00:00 2001 From: Lynne Williams Date: Sun, 17 Feb 2013 11:31:11 -0500 Subject: [PATCH] Update shell_cheatsheet.md --- shell_cheatsheet.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.26.2