Q:

How to generate new files from a list in bash

I have a list of hostnames and I need to create new files based on those hostnames. So, for example, I have a list of 10 hostnames, but I need each of these hostnames in the list to have new files created with the files names being the hostname it's created for. These hostnames are not sequential, i.e. hostname1, hostname2, etc. 
Any help is greatly appreciated!

A:

To create an emtpy file, you can use touch. Use xargs to read a file and run a command on each line.
xargs touch < list

