Skip to content

Commit

Permalink
Updated bash loop
Browse files Browse the repository at this point in the history
Updated bash loop
  • Loading branch information
1nPr0c committed Jan 19, 2015
1 parent 832a1bf commit 22065ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cheatsheet_BashScripting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 22065ac

Please sign in to comment.