Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 17th, 2008, 11:26 AM
Newbie
 
Join Date: Aug 2008
Posts: 23
Default 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(executable) file. How will i do that.

Give me some hints.

Thanks in advance...

-Ashok
Reply
  #2  
Old August 17th, 2008, 05:46 PM
arne's Avatar
Expert
 
Join Date: Oct 2006
Posts: 307
Default

Try the 'file' command.

HTH,
arne
Reply
  #3  
Old August 18th, 2008, 05:33 AM
Newbie
 
Join Date: Aug 2008
Posts: 23
Default

Thanks a lot it really wroks.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles