Annotation of 42BSD/usr.lib/learn/editor/L6.2a, revision 1.1.1.1

1.1       root        1: #print
                      2: How does the editor choose a line to print?
                      3: It always remembers a 'current line', which
                      4: is the last line of the file originally,
                      5: but you can choose any line you want.  The command
                      6: 
                      7: 3p
                      8: 
                      9: prints the third line of the file, for example.  And
                     10: 
                     11: 1p
                     12: 
                     13: prints the first line.  Note that is the digit one there,
                     14: not the letter l, no matter how much alike they look.  I'll
                     15: put you into the editor with the file listed below: print
                     16: the first line, then type 'w', 'q' and "ready" as usual.
                     17: #create Ref
                     18: :george washington
                     19: #create file
                     20: george washington
                     21: john adams
                     22: thomas jefferson
                     23: james madison
                     24: james monroe
                     25: john quincy adams
                     26: #print file
                     27: #copyout
                     28: #pipe
                     29: ex +'set prompt noopt open' file
                     30: #user
                     31: #unpipe
                     32: #uncopyout
                     33: grep washington .ocopy >X2
                     34: #cmp Ref X2
                     35: #log
                     36: #next
                     37: 6.2b 5

unix.superglobalmegacorp.com

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