home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 16 / 16.iso / w / w055 / 3.ddi / SAGEEDIT.LIF / EDIT.ME next >
Encoding:
Text File  |  1990-09-27  |  2.5 KB  |  87 lines

  1. This is the file EDIT.ME.  It is supplied along with the Sage Professional
  2. Editor to give you something with which to experiment.  This file doesn't
  3. contain any important information, so don't worry about destroying it.
  4.  
  5. There may be those of you who don't feel at home in an editor unless you are
  6. looking at some source code.  We want you to feel at home, so how's this:
  7.  
  8. /* RM - a simple file deletion program.  Does not delete
  9.  * directories.
  10.  */
  11.  
  12. #include <stdio.h>
  13.  
  14. main(argc, argv)
  15. int argc;
  16. char *argv[];
  17. {
  18.      int i;
  19.  
  20.      if ( argc == 1 )
  21.      {
  22.           fprintf(stderr, "RM:  No files specified.\n");
  23.           exit(1);
  24.      }
  25.      for ( i = 1; i < argc; ++i )
  26.      {
  27.           if ( unlink( argv[i] ) == -1 )
  28.              fprintf(stderr, "RM:  Cannot delete  %s\n",argv[i]);
  29.      }
  30. }
  31.  
  32. Then there  are those  who like to see word processor margins on
  33. every bit of text they see:
  34.  
  35.  
  36.         Four score  and seven  years ago,  our fathers  brought forth on
  37.         this continent  a new  nation conceived in liberty and dedicated
  38.         to the  proposition that  all men are created equal.  Now we are
  39.         engaged in a great civil war, testing whether that nation or any
  40.         nation so conceived can long endure.
  41.  
  42.         We are met on a great battle-field of that war.  We have come to
  43.         dedicated a  portion of that field, as a final resting place for
  44.         those who  here gave  their lives  that that  nation might live.
  45.         But in  a larger  sense, we  can not  dedicate this ground.  The
  46.         brave men,  living and dead who struggled here, have consecrated
  47.         it, far above our poor powers to add or detract.
  48.  
  49. Translation table for the paragraph following:
  50. ~=e
  51. >=(space)
  52. <=d
  53. ^=l
  54. @=o
  55.  
  56. Note:  the characters <, >, and ^ are regular expressions metacharacters.
  57.     Use \ to quote when regex is on.
  58.  
  59. Th~>w@r^<>wi^^>^itt^~>n@t~,>@r>^@ng>r~m~mb~r>what>w~>say>h~r~,>b
  60. ut>it>can>n~v~r>f@rg~t>what>th~y><i<>h~r~.>>It>is>f@r>us>th~>^iv
  61. ing,>rath~r>t@>b~><~<icat~<>h~r~>t@>th~>unfinish~<>w@rk>which>th
  62. ~y>wh@>f@ught>h~r~>hav~>thus>far>s@>n@b^y>a<vanc~<.>>It>is>rath~
  63. r>f@r>us>t@>b~>h~r~><~<icat~<>t@>th~>gr~at>task>r~maining>b~f@r~
  64. >us--
  65. that>fr@m>th~s~>h@n@r~<><~a<>w~>tak~>incr~as~<><~v@ti@n>t@>that>
  66. c@urs~>f@r>which>th~y>gav~>th~>^ast>fu^^>m~asur~>@f><~v@ti@n--
  67. that>w~>h~r~>high^y>r~s@^v~>that>th~s~><~a<>sha^^>n@t>hav~><i~<>
  68. in>vain.
  69.  
  70. bread
  71. milk
  72. eggs
  73. ground beef
  74. chili
  75. corn flakes
  76. lettuce
  77. tomatoes
  78. bacon
  79. grapes
  80. pork chops
  81. yogurt
  82. butter
  83. potatoes
  84. cheese
  85. bagels
  86.  
  87.