The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-17-2005
DebianJ DebianJ is offline
Registered User
  
 

Join Date: May 2005
Posts: 52
Identify type of file

hi all,

i have the next question:
how can i identify the type of a file? . I'm working in Unix (Solaris 5.7) and i would like identify if a file is or not is a "flat file". I need have a program what separates the flat file in a directory, and the excel file in another directory.
I must get the type by its content, not using the name of the file, because is the same format for flat and excel file.

is that possible¿?
please any idea
thanks