From ce611eaceb29198442c61715352297e37d32db3d Mon Sep 17 00:00:00 2001 From: barhamd Date: Fri, 8 Aug 2014 11:52:43 -0600 Subject: [PATCH] Never parse ls. http://mywiki.wooledge.org/ParsingLs It's about the only thing I really know about bash. --- cheat/cheatsheets/bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat/cheatsheets/bash b/cheat/cheatsheets/bash index 3b601d3..e74a768 100644 --- a/cheat/cheatsheets/bash +++ b/cheat/cheatsheets/bash @@ -1,5 +1,5 @@ # To implement a for loop: -for file in `ls .`; +for file in *; do echo $file found; done