It can be scripted, but it may get complicated if you want
it to be foolproof and cover all mime types.
hi rich
thanks for the links and script !!
...coincidentally i just happened to find another example of scripted magic
@
https://raw.githubusercontent.com/markfeit/sheller/refs/heads/master/libexec/sheller/modules/file# Determine if a file is an iso9660 image without using file(1)
#
# Args:
# 1 - Path to file
file_is_iso9660()
{
[ -r "$1" ] \
&& __ISO9660MAGIC=$(dd "if=$1" bs=1 skip=32769 count=5 2>/dev/null) \
&& [ "${__ISO9660MAGIC}" = "CD001" ] \
|| false
}