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