BASH loops for a list of items in a file and how-to run a command on filenames