home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / text / pipmag3.arc / PIPTUT.PIP < prev    next >
Encoding:
Text File  |  1988-01-07  |  4.3 KB  |  126 lines

  1.      *********************************************************************
  2.      THIS ARTICLE IS BEING PRESENTED THROUGH THE PIP ONLINE CP/M MAGAZINE
  3.      OF THE  NATIONAL CP/M ROUNDTABLE  ON GENIE.   copyright (c) 1989  BY
  4.      BILL JULIANI.   ALL RIGHTS RESERVED.   PERMISSION IS  HEREBY GRANTED
  5.      TO NON-PROFIT ORGANIZATIONS  ONLY TO REPRINT THIS ARTICLE OR PASS IT
  6.      ALONG  ELECTRONICALLY AS LONG  AS PROPER CREDIT IS GIVEN TO BOTH THE
  7.      AUTHOR AND GENIE.
  8.      *********************************************************************
  9.  
  10.  
  11. PIP tutorial by Dale Ray (D.RAY1)
  12.  
  13. PIP: Peripheral Interchange Program
  14.  
  15. PIP  is  one  of the most powerful utilities  in  your  CP/M  library. 
  16. Normally  you use it to simply copy files from one drive  to  another. 
  17. But  PIP can do much more than that. PIP can interchange data  between 
  18. your  other  computer peripherals too. In CP/M each peripheral  has  a 
  19. name that the computer recognizes it by. For example:
  20.  
  21. LST = PRINTER
  22.  
  23. CON = CONSOLE (monitor & keyboard)
  24.  
  25. These  devices can be specified in the PIP command instead of  a  disk 
  26. drive.
  27.  
  28. EXAMPLE:
  29.  
  30. A>PIP LST:=A:FILE.TYP
  31.  
  32.  
  33. The  above  command will cause FILE.TYP to be read from  the  disk  in 
  34. drive  A  and  outputted to the printer. If  you  had  specified  CON: 
  35. instead it would be printed on your monitor.
  36.  
  37. OPTIONS:
  38.  
  39.  
  40.  
  41.  
  42. PIP has many options for altering a file as it is transferred  between 
  43. peripherals. These can be used to reformat a file as it is  duplicated 
  44. or  printed.  You  will use these options most  frequently  with  text 
  45. files. The options are used by placing them in brackets [] at the  end 
  46. of  the command string. DO NOT put a space before the  first  bracket. 
  47. Where  there is an [n] after the option it means that you can enter  a 
  48. number there to further control the options function.
  49.  
  50. Dn  ... Delete Characters. This will truncate a file that is too  wide 
  51. to display. All characters that are beyond (n) will be cut off.
  52.  
  53. E .... Echo Characters. all copying is echoed to the screen. Use  this 
  54. to view a file while it is being transferred.
  55.  
  56. F  ....  Form Feeds removed. Takes all form feed commands out  of  the 
  57. file.
  58.  
  59.  
  60. L .... Lowercase Only. Converts all uppercase characters to lowercase.
  61.  
  62.  
  63. N  ....  Number  Lines. Numbers the lines of the file.  Used  most  to 
  64. create  a  program file from a text file, allowing you to  enter  your 
  65. program with a text editor.
  66.  
  67.  
  68. N2  ... Number Lines. Same as above but it puts leading  zeros  before 
  69. the numbers (001) and a tab after the number.
  70.  
  71.  
  72. Pn ... Page Form-Feeds added. Think of this as page length. It adds  a 
  73. form feed after the number of lines you specify. Default is 60.  Keeps 
  74. you from printing over the perfs.
  75.  
  76.  
  77. Qphrase[control]Z...  Quit  copying at phrase specified. After  the  Q 
  78. enter the phrase you want the computer to look for then hold down  the 
  79. control  key and press Z. When your phrase is reached copying will  be 
  80. stopped.
  81.  
  82.  
  83. Sphrase[control]Z... Start copying at phrase specified. Same syntax as 
  84. above. Use Q and S together to copy a specified section of the file.
  85.  
  86.  
  87. Tn  ...  Tab Spaces. Each TAB encountered in the text will  cause  the 
  88. specified number of spaces to be printed.
  89.  
  90.  
  91. U .... Uppercase only. Converts all lowercase to uppercase characters.
  92.  
  93.  
  94. V  ...  Verify copy. Causes the system to check the copy  against  the 
  95. original for errors.
  96.  
  97.  
  98. As  you  can see there is a lot you can do with PIP to  reformat  text 
  99. files. Experiment to see what you can do.
  100.  
  101.  
  102. OTHER USES:
  103.  
  104.  
  105. Another  use  for PIP in handling text files is the  ability  to  join 
  106. files together. To do this simply list the source files separated by a 
  107. comma. EX.:
  108.  
  109.  
  110. A>PIP BOOK=CHAPTER1,CHAPTER2,CHAPTER3
  111.  
  112.  
  113. This  would create a file called book by copying the  three  specified 
  114. source files into one larger file.
  115.  
  116.  
  117. You can also use PIP to transfer files from one user area to  another. 
  118. The syntax looks like this:
  119.  
  120.  
  121. A>PIP NEWFILE.TYP=OLDFILE.TYP[Gn]
  122.  
  123.  
  124. This  would GET the file OLDFILE.TYP from the user area  specified  by 
  125. the n and copy it to the current user area.
  126.  
  127.  
  128.