[File] "file" as a type filter
Gordon Messmer
gordon.messmer at gmail.com
Sun Jun 21 14:45:20 EDT 2026
On 2026-06-21 6:11 AM, Christos Zoulas wrote:
> Sure, but you can use -f to supply the list of files and use
> --mime-type to just print the mime-type and use egrep to select the
> mime times you want.
You can, and that *might* be good enough for this use case, but we're
still talking about a byte stream where records are newline delimited
but might contain newlines, and fields that are colon separated but
might contain colons.
It would be a lot more reliable if the input was a stream of NUL
separated records and the output was a stream of NUL separated records.
More information about the File
mailing list