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