From 1d74e5f200ec417d688055d1696a53b7fa6d089c Mon Sep 17 00:00:00 2001 From: Ben Klein Date: Tue, 3 Sep 2019 22:47:55 -0400 Subject: [PATCH] here why --- DirsOnDirs/solution.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/DirsOnDirs/solution.sh b/DirsOnDirs/solution.sh index 6371f19..915c7cd 100755 --- a/DirsOnDirs/solution.sh +++ b/DirsOnDirs/solution.sh @@ -1,14 +1 @@ -for i in {1..10} -do - cd directory$i - for j in {1..10} - do - cd directory$j - for file in ./* - do - grep flag $file - done - cd .. - done - cd .. -done \ No newline at end of file +grep flag -r .