Linux

Generate IP-address ranges using simple bash script

This is just a simple script to generate IP-addresses in a IP-range and write the result output to a file. The script does also remove addresses you would like to exclude from the final output. #!/bin/bash OUTFILE=”mk-iprange.txt” IPRANGE=”192.168.0 192.168.1″ EXCLUDE=”192.168.0.1 192.168.0.2 192.168.1.1″ # Remove old OUTFILE rm -f $OUTFILE # Loop addresses, write to OUTFILE […]

Read More