home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / txtutl / ttools.lbr / _PROGRAM.IZF / _PROGRAM.INF
Encoding:
Text File  |  1986-12-07  |  2.9 KB  |  65 lines

  1. Description of programs.
  2.  
  3. Thσ followinτ give≤ brieµ description≤ oµ thσ programs«  Thσ exac⌠ ì
  4. syntax can be obtained with a "?" parameter.
  5.  
  6. change            Change≤ onσ patterε int∩ anothe≥ throughou⌠ ß file«  ì
  7. ááááááááááááááááááPattern≤ arσ thσ samσ a≤ thosσ useΣ b∙ gre≡ (below)«  ì
  8. ááááááááááááááááááNote¼ tha⌠ thσ patterε searcheΣ fo≥ i≤ normall∙ ì
  9. áááááááááááááááááácaseles≤ anΣ thσ patterε t∩ whicΦ i⌠ i≤ t∩ bσ changeΣ ì
  10. ááááááááááááááááááis assumed to be in lower case unless you use \u.
  11.  
  12. detab             Removes tabs from a file.
  13.  
  14. df                Compares two text files.
  15.  
  16. èentab             Inserts tabs where possible in a file.
  17.  
  18. grep              Genera∞ regula≥ expressioε print«  Searche≤ fo≥ ß ì
  19. áááááááááááááááááápatterε iε ß lis⌠ oµ files«  Thi≤ prograφ accept≤ ì
  20. ááááááááááááááááááwilΣ cards«  Iµ thσ patterε contain≤ spaces¼ i⌠ mus⌠ ì
  21. áááááááááááááááááábσ encloseΣ iε quote≤ o≥ apostrophes«  Thi≤ prograφ ì
  22. áááááááááááááááááái≤ ver∙ versatile¼ bu⌠ ma∙ bσ ß bi⌠ strangσ t∩ ne≈ ì
  23. ááááááááááááááááááusers.  Therefore, some examples are given here.
  24.  
  25.                   Pu⌠ al∞ line≤ whicΦ begiε witΦ ß taΓ froφ file▒ int∩ ì
  26. ááááááááááááááááááthσ outpu⌠ iε file2
  27.  
  28.                       grep -f ^\t file1 >file2
  29.  
  30.                   Pu⌠ al∞ line≤ whicΦ d∩ no⌠ begiε witΦ aε "Mó froφ ì
  31. ááááááááááááááááááfile1 into file2
  32.  
  33.                       gre≡ -µ -ß ^[^\um] file1 >file2
  34.  
  35.  
  36.                   Sho≈ al∞ occurrence≤ oµ "fprintfó anΣ "sprintfó (bu⌠ ì
  37. ááááááááááááááááááno⌠ oµ "printf" in all c programs on drive b, user 4
  38.  
  39.                       grep -a [fs]printf b4:*.c
  40.  
  41. mprint            Type≤ severa∞ file≤ iε columns«  Notσ tha⌠ b∙ ì
  42. áááááááááááááááááádefault¼ iµ ß linσ froφ ß filσ doe≤ no⌠ fi⌠ iε ß ì
  43. áááááááááááááááááácolumn¼ i⌠ wil∞ expanΣ thσ sizσ oµ thσ columε fo≥ ì
  44. ááááááááááááááááááthat line.
  45.  
  46. sort              Fairl∙ genera∞ sor⌠ fo≥ largσ files«  ╔ kno≈ thσ ì
  47. ááááááááááááááááááoption≤ arσ ß bi⌠ confusing¼ bu⌠ i⌠ caε d∩ ß lot«  ì
  48. ááááááááááááááááááOnσ thinτ t∩ bea≥ iε minΣ -- iε quitσ ß fe≈ case≤ ì
  49. ááááááááááááááááááspeeΣ wa≤ sacrificeΣ fo≥ versatility«  Don'⌠ expec⌠ ì
  50. ááááááááááááááááááthis program to win the "sort olympics".
  51.  
  52. split             Split≤ onσ filσ int∩ several«  Default≤ t∩ ß rounΣ ì
  53. áááááááááááááááááárobiε method¼ usefu∞ fo≥ combininτ witΦ mprin⌠ t∩ ge⌠ ì
  54. áááááááááááááááááácolumna≥ printing«  Caε als∩ bσ useΣ simpl∙ t∩ breaδ ì
  55. ááááááááááááááááááup a file that's gotten too large.
  56.  
  57. tr                Translates characters.
  58.  
  59. uniq              Removes duplicate lines.
  60.  
  61. wc                Count≤ words¼ lines¼ anΣ characters«  ┴ ver∙ simplσ ì
  62. ááááááááááááááááááalgorithφ i≤ useΣ (ß worΣ i≤ an∙ strinτ oµ character≤ ì
  63. áááááááááááááááááásurroundeΣ b∙ whitσ space)«  Thi≤ i≤ adequatσ fo≥ ì
  64. áááááááááááááááááámos⌠ purposes«  Thi≤ prograφ take≤ ß lis⌠ oµ files«  ì
  65. ááááááááááááááááááWild cards are permitted.
  66.