I am trying to create a script that is capable of pinging multiple hosts from a text file in my directory.The hosts are with specific naming conventions and are grouped.E.g in the text fie10.10.10.10 XX-YY_ZZ name of the host in form of URL | serial numberThe file is not CSV but txt.What I am hoping to make is something simple which when you run say  pingme YY ( where YY is the in common element of the devices belonging to a certain location ) it would return me a result of e.g:XX-YY_ZZ = ALIVEProbably is very simple but I have no idea how to even start as this is Linux REDHAT we are running.Any pointers and ideas would be appreciated.
Ping hosts based on filter and return dead or alive
bash;shell;rhel;ping