#!/bin/bash if [ -z "$1" ] then echo "Enter IP file as first arguement" fi options=("NMap" "ping" "nslookup" "Quit") select opt in "${options[@]}" do case $opt in "NMap") nmap -iL "$1" -T2 -p 80,443,22,21,3389 -o nmapOutput.txt ;; "ping") echo "ping" ;; "nslookup") echo "nslookup" ;; "Quit") break ;; esac done