I have a directory with a list of machine names and some with domain names and some without. I want to check a file in each <machine>/sub dir. My hostlist only has the machine name without a FQDN
For i in cat hostlist; do cat $i*/file;fi; done ( it will not see the file with this wildcard - not sure how to cat tried cat ^$i but still didn't work.
The directory looks like this: