diff questions

George Daflidis-Kotsis gdk at demon.net
Thu Oct 21 18:38:01 EEST 1999


On Thu, Oct 21, 1999 at 06:32:07PM +0300, Michalis Kabrianis wrote:

> Poios tropos yparxei gia na kanw "diff" 2 arxeia, apo kapoia grammi kai katw?
> Exw 2 enallaktikes proseggiseis na sas proteinw, gia na mou peite lyseis: 
> 
> 1) Ta arxeia A kai B prepei na sygkrinontai, ektos apo tis 10 prvtes grammes pou
> yparxoun mono sto A, ara i grammi 1 tou B einai i 11 tou A k.o.k.
> 2) Ta arxeia A kai B prepei na sygkrinontai, ektos apo tis 10 prwtes grammes tou
> kathe arxeiou poy tha einai diaforetikes.
> 
> Ayto tha xrisimopoiithei gia patching (apo to A sto B), kai milame gia gyrw sta
> 20 arxeia (ara lyseis tou styl, agnoeis to output tou diff gia tis prwtes 10
> grammes den einai dektes :-)

Kati san:

diff `COUNT=\`wc -l filename1\`; COUNT=$[$COUNT-10]; tail -$COUNT filename1` filename2

den 8a pai3ei? :-)

/me skubei gna apofugei ta sapia laxanika.

-- 
-- George Daflidis-Kotsis -- <gdk at demon.net> -- Demon Internet Ltd. --
-- Welcome to hell, here is your DoubleSpaced 386SX and Windows 98. --
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list