How to check the kind of file

Hi all,

I'm working on Solaris 10 and I have to install some packets in which there are files of different kind. In this situation I need to know a command of UNIX/Solaris to check the kind of file.

For example how can I know if the file has ISO or ASCII or BER or HEX format?

Thank you very much!!!

can you use

$file <your_file_name>

Thanks but I just used this command, I need a command which gives more information about the file.

Do you know another command?

can you give some more details regarding your requirement. wat you want to do after finding the file format? if any decision making needed then we can go further....?

Ok...with "file" command I can check if the file is ISO or ASCII etc...but I cannot check if this file is coded HEX or BER or mixed, isn't true?

I can use the "od -(options)" command also, but I transform the input file in another output kind of file.

So...