Boh8eia me diff...

Stelios Bounanos sb at dial.pipex.com
Thu Jun 19 13:09:01 EEST 2003


 >>>>> On Thu, 19 Jun 2003 07:27:13 +0300, Giannis Stoilis
 >>>>> <giannis at stoilis.gr> was rumoured to have said:

 > Ironhell3 wrote:
 >> Με ένα man diff θα το έβρισκες πολυ εύκολα.Η λύση είναι diff -C 5 text1
 >> text2 αν το θέλεις σε context ή diff -U 5 text1 text2 αν το θέλεις σε
 >> unified format

 > I still don't get it (sorry!).
 > Des ena sample output:
 >  interface FastEthernet48
 >    no ip address
 >    no ip directed-broadcast
 > ***************
 > *** 283,314 ****
 >    shutdown
 >   !
 >   interface BVI1
 >    ip address 195.66.103.94 255.255.255.224
 >    no ip directed-broadcast
 >   !
 > ! interface BVI2
 >    ip address 10.0.0.1 255.255.255.0
 >    no ip directed-broadcast
 > ! !
 > ! interface BVI20
 > !  ip address 10.20.0.1 255.255.255.0
 > !  no ip directed-broadcast
 > !  no ip route-cache cef
 >   !
 >   ip classless
 >   ip route 0.0.0.0 0.0.0.0 10.0.0.6
 > - ip route 10.20.0.128 255.255.255.128 10.0.0.5
 >   !
 >   logging 10.0.0.23
 > - snmp-server community public RO
 >   bridge 1 protocol ieee
 >    bridge 1 route ip
 >   bridge 2 protocol ieee
 >    bridge 2 route ip
 > - bridge 20 protocol ieee
 > -  bridge 20 route ip
 >   !
 >   line con 0
 >    transport input none
 >   line aux 0
 >   line vty 0 4
 > --- 273,297 ----


 > 1) Ti sumbolizoun ta ****************?
 > 2) Ti sumbolizoun ta ---------------------?
 > An katalaba kala, mou deixnei apospasma kai apo duo arxeia, enw egw 8a h8ela

Ahem, gi' ayto legetai diff!

 > na piasei to neo arxeio kai na mou deiksei kapws oti autes oi grammes
 > uparxoun mono se auto to arxeio, enw alles grammes leipoun apo auto to
 > arxeio...


Tote de 8eleis diff. Dokimase kati san to parakatw kai des to
apotelesma me enan postscript viewer:

trueprint -t text -I --K --k -n -C -F -O old_config.txt -s new_config-pretty.ps new_config.txt

(kai den exw piei kafe akoma)


Rgds,
/-sb.



More information about the Linux-greek-users mailing list