Annotation of 42BSD/usr.lib/learn/editor/L19.1a, revision 1.1.1.1

1.1       root        1: #print
                      2: Now that you know how to add lines to a file,
                      3: you will want to know how to get rid of them.
                      4: The command
                      5:    5d
                      6: will delete line 5 of a file.  The command
                      7:    .d
                      8: will delete the current line.
                      9: In the file 'pres' either the 5th or 6th line
                     10: is wrong.  Print those lines and delete the bad
                     11: one; then rewrite the corrected file.
                     12: Then type 'ready'.
                     13: #create Ref
                     14: george washington
                     15: john adams
                     16: thomas jefferson
                     17: james madison
                     18: james monroe
                     19: john quincy adams
                     20: andrew jackson
                     21: martin van buren
                     22: william henry harrison
                     23: john tyler
                     24: #create pres
                     25: george washington
                     26: john adams
                     27: thomas jefferson
                     28: james madison
                     29: james monroe
                     30:  this is wrong Qwertyuiop
                     31: john quincy adams
                     32: andrew jackson
                     33: martin van buren
                     34: william henry harrison
                     35: john tyler
                     36: #user
                     37: #cmp pres Ref
                     38: #log
                     39: #next
                     40: 19.1b 10

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.