in reply to Need help with script with a while loop reading file
Assuming you have one hostname per line in your file you need to add a chomp; after while (<FILE>) { to remove the newline at the end of the hostname.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help with script with a while loop reading file
by brianjb (Novice) on May 03, 2013 at 14:26 UTC |