Identifying ascii and binary files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashokd001
    New Member
    • Aug 2008
    • 30

    Identifying ascii and binary files

    Hi

    I am going to write one shell script where i have to identify whether one file is Ascii file or binary(executab le) file. How will i do that.

    Give me some hints.

    Thanks in advance...

    -Ashok
  • arne
    Recognized Expert Contributor
    • Oct 2006
    • 315

    #2
    Try the 'file' command.

    HTH,
    arne

    Comment

    • ashokd001
      New Member
      • Aug 2008
      • 30

      #3
      Thanks a lot it really wroks.

      Comment

      Working...