From 6042b8814afaed6537988278e6f20803cde3e892 Mon Sep 17 00:00:00 2001 From: adelviscio Date: Sun, 1 Sep 2013 15:40:10 -0400 Subject: [PATCH] Cleaned up the loop Otherwise, the loop just prints the words 'file' and 'found' on separate lines. --- cheatsheets/bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheatsheets/bash b/cheatsheets/bash index 340158e..384401d 100644 --- a/cheatsheets/bash +++ b/cheatsheets/bash @@ -1,7 +1,7 @@ # To implement a for loop: for file in `ls .`; - do echo 'file'; - echo 'found'; +do + echo $file found; done # To implement a case command: