Annotation of 43BSDTahoe/usr.lib/learn/editor/L10.1a, revision 1.1.1.1

1.1       root        1: #print
                      2: Often, what you want to do is print an entire file,
                      3: and often you don't know exactly how long it is.
                      4: There is a special abbreviation for this purpose:
                      5: the character
                      6:   $
                      7: refers to the last line in the file, and so
                      8: 1,$p prints all of a file.
                      9: Here's a new file.  Print it out using the editor
                     10: command 1,$p.  Then do the usual w, q, and ready.
                     11: #create Ref
                     12: 1,$p
                     13: w
                     14: q
                     15: #create file
                     16: New York Mets Managers
                     17:  Casey Stengel
                     18:  Wes Westrum
                     19:  Gil Hodges
                     20:  Yogi Berra
                     21:  Roy McMillan
                     22: #copyin
                     23: #pipe
                     24: ex +'set prompt noopt open' file
                     25: #user
                     26: #unpipe
                     27: #uncopyin
                     28: tail -3 .copy >X1
                     29: #cmp X1 Ref
                     30: #log
                     31: #next
                     32: 10.1b 10

unix.superglobalmegacorp.com

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