sawp a file

Posted on 2007-10-07
Last Modified: 2013-12-05
I have a series of files and I need to find out if they are byte or interger. I am trying the od -b filenaem command but I am not sure of the result.
any ideas
Question by:diegohpe
    LVL 48

    Expert Comment

    Your question doesn't make sense.  Integers are bytes.

    Please explain what you are trying to achieve.

    Are you trying to determine the difference between a binary and ascii file?
    LVL 84

    Accepted Solution

    please define "byte or interger"
    file filename
    perl -e 'print -T shift' filename
    anything like what you mean?
    LVL 40

    Expert Comment


    As ozo recommended, you may use the command file which will tell you about the file type. For more info about the command file, please use man file.

    Also, you may use the command

    what filename

    This might also tell you more info about the file and its version, etc.

    for more info about what, please use man what

    LVL 9

    Expert Comment

    by:Suhas .
    No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

    I will leave the following recommendation for this question in the Cleanup Zone:

    Accept: Ozo {http:# 20030927}

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.

    Experts Exchange Cleanup Volunteer
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now