Added option -i, read file names from stdin