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

1.1       root        1: #print
                      2: Sometimes it is desirable to add text before a
                      3: known line, rather than after it.  For this purpose
                      4: there is an 'i' (insert) command that places the new
                      5: material before the specified line. Otherwise, 'i'
                      6: is exactly like 'a', so that
                      7:   3i
                      8: is the same as
                      9:   2a
                     10: Remember the address of the last line?  Just
                     11: before the last line of file 'airlines'
                     12: insert the line
                     13: 
                     14: twa
                     15: 
                     16: and then rewrite the file with wq and type ready.
                     17: #create Ref
                     18: american
                     19: braniff
                     20: continental
                     21: delta
                     22: eastern
                     23: national
                     24: pan am
                     25: twa
                     26: united
                     27: #create airlines
                     28: american
                     29: braniff
                     30: continental
                     31: delta
                     32: eastern
                     33: national
                     34: pan am
                     35: united
                     36: #user
                     37: #cmp airlines Ref
                     38: #log
                     39: #next
                     40: 19.1a 10

unix.superglobalmegacorp.com

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