Get File MIME Type from Command Line

I’ve gotten skilled at shell scripting over the years. I love a good GUI but knowing how to automate makes you a much more powerful engineer. Much of my scripting requires recursing over directories and processing a file if it meets a given criteria, which is often file extension or MIME type. You can use […]
The post Get File MIME Type from Command Line appeared first on David Walsh Blog.

Link: https://davidwalsh.name/get-mime-type