bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: od -tx1|-tx2|-to1|-to2 output problem


From: Jim Meyering
Subject: Re: od -tx1|-tx2|-to1|-to2 output problem
Date: Thu, 16 Oct 2008 21:37:36 +0200

"Howland Craig D (Craig)" <address@hidden> wrote:
>      When using od with output formats of 1 or 2 bytes, the printed
> output
> can be wrong, particularly--but not exclusively--with non-printing

Thank you for the report.

However, that is standard and required behavior.
To turn it off, use -v (aka --output-duplicates).

    $ printf abbbc |od -aAn -w1
       a
       b
    *
       c
    $ printf abbbc |od -vaAn -w1
       a
       b
       b
       b
       c

>From  "info coreutils od"

    `-v'
    `--output-duplicates'
         Output consecutive lines that are identical.  By default, when two
         or more consecutive output lines would be identical, `od' outputs
         only the first line, and puts just an asterisk on the following
         line to indicate the elision.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]