Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #12583

Re: diff -y ???

From JohnF <john@please.see.sig.for.email.com>
Newsgroups comp.os.linux.misc
Subject Re: diff -y ???
Date 2014-11-02 05:12 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <m34efr$3fl$1@reader1.panix.com> (permalink)
References <m34dl0$3dh$1@reader1.panix.com>

Show all headers | View raw


Sorry, never mind. I tried, but failed, googling before
posting, but have now googled the answer
   diff -y --suppress-common-lines
(I'd of thunk that would be the default for a program
called diff)

JohnF <john@please.see.sig.for.email.com> wrote:
> diff -y doesn't seem to be working, or I don't know how to use it.
> Even diff'ing the same file, diff alone emits nothing,
> but diff -y emits every line of the file, side-by-side, i.e.,
>   bash-4.2$ diff test.txt test.txt
>   bash-4.2$
> but
>   bash-4.2$ diff -y -W 60 test.txt test.txt
>   This is a test file          This is a test file
>   showing that                 showing that
>   diff -y doesn't work,        diff -y doesn't work,
>   at least not when            at least not when
>   I'm using it.                I'm using it.
>   bash-4.2$
> Same thing happens without the -W (but longer lines),
> and same thing happens with -yw or any other -switches
> I tried that include -y.  I'm using diff --version
> diff (GNU diffutils) 3.3
> Any way to get that -y to work (or how do you properly
> use it)?
-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

diff -y ??? JohnF <john@please.see.sig.for.email.com> - 2014-11-02 04:58 +0000
  Re: diff -y ??? JohnF <john@please.see.sig.for.email.com> - 2014-11-02 05:12 +0000

csiph-web