Annotation of 42BSD/usr.lib/learn/editor/L8.2c, revision 1.1.1.1

1.1       root        1: #print
                      2: You can also use "-" in addresses.
                      3: For example, you can print the
                      4: line before the current line with
                      5:   .-1p
                      6: as a command.  Again, I'll put
                      7: you in the editor; print the fifth
                      8: line and then the fourth, using this
                      9: command to print lines in reverse
                     10: order.  Then leave with w, q, and ready.
                     11: #create Ref
                     12: :carrots
                     13: :squash
                     14: :"file" 9 lines, 83 characters
                     15: #create file
                     16: broccoli
                     17: mushrooms
                     18: cauliflower
                     19: squash
                     20: carrots
                     21: lettuce
                     22: string beans
                     23: peas
                     24: lima beans
                     25: #copyout
                     26: #pipe
                     27: ex +'set prompt noopt open' file
                     28: #user
                     29: #unpipe
                     30: #uncopyout
                     31: tail -3 .ocopy >X1
                     32: #cmp Ref X1 3
                     33: #log
                     34: #next
                     35: 9.1a 10
                     36: 9.2a 5

unix.superglobalmegacorp.com

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