home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 133_01 / textcom.doc < prev    next >
Text File  |  1985-03-10  |  4KB  |  79 lines

  1. TEXTCOM
  2.  
  3.      Thi≤ utilit∙ prograφ i≤ fo≥ comparinτ tw∩ tex⌠ files«  Thσ differences¼ ì
  4. iµ any¼ caε bσ displayeΣ oε thσ console¼ listeΣ oε thσ printer¼ o≥ placeΣ iε ì
  5. ßá thirΣ file¼á ß repor⌠ file«á  Usuall∙ thσ tw∩ file≤ t∩ bσ compareΣ arσ aε ì
  6. origina∞á versioεá oµá ß tex⌠ (ß prograφ source¼á documen⌠ etc⌐á anΣá ßá ne≈ ì
  7. versioε whicΦ ha≤ beeε formeΣ froφ thσ origina∞ b∙ inserting¼á deletinτá anΣ ì
  8. changing lines.
  9.  
  10.      Thσ comparison≤ arσ no⌠ strictl∙ mechanical¼á bu⌠ arσ morσ likσ ß humaε ì
  11. comparison«á  Wheεá ß differencσ i≤ encountered¼á thσ file≤ arσ searcheΣ fo≥ ì
  12. anothe≥á se⌠ oµ matchinτ lines¼á t∩ brinτ thσ comparisoε proces≤á bacδá int∩ ì
  13. synchronism«á  Fo≥ example¼á iµ thσ tw∩ file≤ arσ thσ same¼á excep⌠ tha⌠ onσ ì
  14. ha≤ aε extrß line¼á onl∙ tha⌠ linσ wil∞ bσ printeΣ a≤ ß difference«  Textcoφ ì
  15. wil∞á theε movσ pas⌠ thσ differencσ anΣ discove≥ tha⌠ thσ res⌠ oµ thσá text≤ ì
  16. match.
  17.  
  18.      Onσ oµ thσ option≤ whicΦ caε bσ se⌠ usinτ Textcoφ determine≤ thσ numbe≥ ì
  19. oµá line≤á oµá tex⌠ froφ thσ tw∩ file≤ whicΦ mus⌠ matcΦ exactl∙á beforσá thσ ì
  20. prograφá decide≤á tha⌠á i⌠á ha≤ manageΣ t∩ brinτ thσá tw∩á file≤á bacδá int∩ ì
  21. synchronism«á  Thσá defaul⌠á numbe≥á oµ line≤ i≤ 3¼á anΣ thi≤á seem≤á t∩á bσ ì
  22. suitable for most text comparisons.
  23.  
  24.      The program is begun with the command:
  25.  
  26.      TEXTCOM oldfile newfile options
  27.  
  28. wherσ 'oldfileº anΣ 'newfileº arσ thσ name≤ oµ thσ file≤ t∩ bσ compared¼ anΣ ì
  29. 'optionsº i≤ ß se⌠ oµ option≤ takeε froφ thσ lis⌠ below«á  Iµ n∩ option≤ arσ ì
  30. needed¼á thσ filename≤ themselve≤ wil∞ sufficσ oε thσ commanΣ line«á  Iµá n∩ ì
  31. filσá name≤ no≥ option≤ arσ specified¼á anΣ jus⌠ thσ namσ TEXTCO═ i≤á given¼ ì
  32. thσ prograφ display≤ ß summar∙ descriptioε oµ it≤ usσ anΣ thσ meaninτ oµ thσ ì
  33. options.
  34.  
  35. Thesσ option≤ ma∙ bσ placeΣ oε thσ commanΣ line¼á afte≥ thσ name≤ oµ thσ tw∩ ì
  36. file≤ t∩ compare:
  37.  
  38.      -Sá  thσ numbe≥ oµ line≤ whicΦ mus⌠ matcΦ t∩ re-establisΦá synchronism«  ì
  39. ááááááááááThi≤á optioεá shoulΣ bσ immediatel∙ followeΣ b∙ ß numbe≥á (withou⌠ ì
  40. ááááááááááany intervening spaces)
  41.           eg   -S2
  42.           T∩ perforφ ß stric⌠ comparison¼á linσ b∙ line¼  witΦ n∩ attemp⌠ t∩ ì
  43. ááááááááááre-establish synchronism, use either
  44.                -S0  or -S
  45.           (Default: 3)
  46.  
  47.      -L   list any differences on the printer as well as on the screen
  48.  
  49.      -R   senΣá thσ lis⌠ oµ difference≤ t∩ ß repor⌠ file«á  Thσá difference≤ ì
  50. ááááááááááarσá no⌠á displayeΣá oεá thσá console«á  -╥á mus⌠á bσá immediatel∙ ì
  51. ááááááááááfollowed¼á withou⌠ an∙ interveninτ spaces¼ b∙ ß filename¼ thσ namσ ì
  52. ááááááááááof the file into which the report will be written.
  53.           eg   -Rdiffs
  54.           -╥á anΣá -╠á ma∙ bσ useΣ iε combinatioε t∩á senΣá thσá difference≤ ì
  55. ááááááááááreport to both the printer and to a file (but not to the console).è  
  56.      -F   thi≤á optioε mus⌠ bσ followeΣ b∙ ß number¼á thσ linσá numbe≥á froφ ì
  57. ááááááááááwhicΦá t∩ star⌠ displayinτ differences«á  Thσ optioε onl∙ control≤ ì
  58. ááááááááááthσá outpu⌠á oµ differences╗á thσ file≤ arσ alway≤á compareΣá froφ ì
  59. áááááááááátheir first lines.
  60.           eg   -F112
  61.  
  62.      -Tá  thi≤á optioεá mus⌠ als∩ bσ followeΣ b∙ ß number«á  Wheε thi≤á linσ ì
  63. áááááááááánumbe≥ is reached in both files, the comparisons will stop.
  64.           eg   -T123
  65.  
  66.      -P   normall∙á TEXTCO═ ignore≤ thσ parit∙ bi⌠ wheε comparinτ thσá file≤ ì
  67. áááááááááá(thu≤ makinτ i⌠ compatiblσ with¼á fo≥ instance¼ WordSta≥ generateΣ ì
  68. áááááááááátex⌠ files)«  Settinτ thi≤ optioε cause≤ thσ comparisoε t∩ includσ ì
  69. ááááááááááthe parity bit.
  70.  
  71. textcom.doc
  72. February 1983
  73.  
  74. G. Nigel Gilbert
  75. MICROLOGY
  76. 4 Deanery Road,
  77. Godalming
  78. Surrey GU7 2PQ
  79. England.