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.
.
.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)