#!/bin/bash for fn in $@; do echo "scanning $fn" nmap -A -Pn -p- --min-rate 2500 $fn | tee -a "index/$fn.txt" & done