in reply to Re: file(1) equivalent?
in thread file(1) equivalent?

Which really confuses me ... why write a command-line utility that mimics another (other than for fun-n-profit)?

Portability is a common reason. e.g. ExtUtils::MakeMaker reimplements some unix tools in Perl for this reason.