Syntax:

amass enum -d example.com

script until now [ not finished ]

#!/bin/bash

url=$1

if [ ! -d "$url" ];then
        mkdir $url
fi

if [ ! -d "url/recon" ];then
        mkdir $url/recon 
fi

echo "[+] harvesting subdomains with assetfinder..."
assetfinder $url >> $url/recon/asset.txt
cat $url/recon/asset.txt | grep $1  >> $url/recon/final.txt
rm $url/recon/asset.txt

echo "[+] harvesting subdomains with amass .... " 
amass enum -d $ulr >> $url/recon/f.txt
sort -u $url/recon/final.txt >> $url/recon/final.txt
rm $url/recon/f.txt