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

1.1       root        1: #print
                      2: Just as you can print several lines at once by
                      3: giving a range of addresses with the 'p' command,
                      4: you can delete several lines at once by giving
                      5: two addresses.  For example,
                      6:    2,5d
                      7: deletes lines 2, 3, 4 and 5 of the current file.  The
                      8: command
                      9:    1,.-1d
                     10: deletes all lines up to but not including the current line.
                     11: And
                     12:    1,$d
                     13: deletes EVERY line.  (Use with extreme caution, obviously.)
                     14: There is a file named 'counties' in this directory.
                     15: Throw away the first five lines of it and rewrite it.
                     16: Then type 'ready' as usual.
                     17: #create Ref
                     18: Morris
                     19: Warren
                     20: Union
                     21: Somerset
                     22: Hunterdon
                     23: #create counties
                     24: Bergen
                     25: Passaic
                     26: Sussex
                     27: Hudson
                     28: Essex
                     29: Morris
                     30: Warren
                     31: Union
                     32: Somerset
                     33: Hunterdon
                     34: #user
                     35: #cmp counties Ref
                     36: #log
                     37: #next
                     38: 20.01a 10

unix.superglobalmegacorp.com

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