delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/24/20:40:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 24 Oct 2002 20:40:17 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: dheeraj seth <seth_dheeraj AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: sdiff related.....
In-Reply-To: <F766Qk5LK4KRewLX2wE0000c6bd@hotmail.com>
Message-ID: <Pine.GSO.4.44.0210242037130.13770-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

This is really off-topic for this list, as it has nothing whatsoever to do
with cygwin.

That said, try the -D option of diff (man diff, search for "-D").
	Igor

On Thu, 24 Oct 2002, dheeraj seth wrote:

> Hi everybody,
> I have searched amlost evrything mentioned on the cygwin site.
> The Problem is:
> i used  diff utility to get differences between two files(F1 and F2).It
> worked.it gave me the changes to add and replace in the file(F2), now i can
> use sdiff but the problem is want to add a line before and after the
> changes, when sidff adds those changes to the file.
> Is there any option to add my lines while doing this?
> Please any help would be really appreciated.
>
> Thanks a lot.
> Best Regards.
>
> Example: this is a portion of output by diff
>
> diff -r 72/compproc/xbpaEstimateLineSelect.sql
> 73/compproc/xbpaEstimateLineSelect.sql
> 56a57,63
> >       AND (PCBACTUALQTY < PCBESTIMATEQTY or not exists(select 1 from PCB00125
> >               where PCBJOBNUMBER = @project
> >                     AND PCBPNUM = @phase))
>
>
> Want to Add this to File F2:
>
> #If xyz == 21
> AND (PCBACTUALQTY < PCBESTIMATEQTY or not exists(select 1 from PCB00125
> where PCBJOBNUMBER = @project
> AND PCBPNUM = @phase))
> #endif

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019