open and -X have the answers.
In reply to Re: How do I gather and output info about a file's contents? by derby in thread How do I gather and output info about a file's contents? by aureum