finished up head: works with stdin, a single file, or a list of files