#!/bin/bash for fn in $@; do echo "scanning $fn" nmap -A -Pn -p- --script ssl-cert,http-headers $fn | tee -a "index/$fn.txt" done