Get mime type for a file in Ruby

`file --b --mime-type '/path/to/file.txt'`.strip

Read more Show archive.org snapshot

Greg Almost 7 years ago