Back-Flip
IT tips and tricks ;)
Windows / Linux / Cisco
Tuesday, March 29, 2011
Bash - simple "for loop"...
This may be usefull, it's a simple loop in BASH
#!/bin/bash
for hostname in $(cat text.txt); do
host $hostname
done
Just substitute the "text.txt" with a file containing the hosts.
.
.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment