From 22065acab0c79017be317264b0100c037246e089 Mon Sep 17 00:00:00 2001 From: Jamie Shaw Date: Mon, 19 Jan 2015 08:25:08 +0000 Subject: [PATCH] Updated bash loop Updated bash loop --- Cheatsheet_BashScripting.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cheatsheet_BashScripting.txt b/Cheatsheet_BashScripting.txt index 0a64ef7..c976e4d 100644 --- a/Cheatsheet_BashScripting.txt +++ b/Cheatsheet_BashScripting.txt @@ -118,7 +118,7 @@ fi [+] For loops #!/bin/bash -for i in $(cat hosts.txt) +for host in $(cat hosts.txt) do - command $1 + command $host done \ No newline at end of file