util for responding to a list of files, eg using xargs