grep could support --label
cmd - userland programs
Over the years, folks have found the
--label option to grep(1) useful when working in a pipeline as it allows you to set the output file name when interfacing with stdin. It'd be nice if we had support for this as well.