How can I use shell scripting to append a range of IPs to a file?
|
feedback
|
closed as not a real question by mailq, Chris S♦, MDMarra, MadHatter, andol Nov 10 '11 at 19:40
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.
|
Try something like:
The | ||||
feedback
|
echo "192.168.0.1/24" >> /path/to/file. – mailq Nov 10 '11 at 19:13echo 192.168.0.{0..255} >> /path/to/file– mailq Nov 10 '11 at 19:25