#! /bin/bash while read ip_add mach_nam; do echo "M=>" $mach_nam "I=>" $ip_add; done < "/etc/nmap.txt.new"