#!/bin/sh

if [[ $# -ne 1 ]];  then
    echo "usage: toiplist.sh <scan.gnmap>"
    exit 1
fi

cat $1 | awk '{print $2}' | head -n -1 | tail -n +2