sdiff related.....

dheeraj seth seth_dheeraj@hotmail.com
Thu Oct 24 15:58:00 GMT 2002


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






_________________________________________________________________
Get faster connections -- switch to MSN Internet Access! 
http://resourcecenter.msn.com/access/plans/default.asp



More information about the Cygwin-xfree mailing list