Annotation of 43BSDTahoe/usr.lib/learn/editor/L3.1b, revision 1.1.1.1

1.1       root        1: #print
                      2: A particularly important editor command
                      3: is 'w' (write).  This writes whatever
                      4: you are working on, including everything you
                      5: have typed in or changed, into a file,
                      6: so that you can work on it again later.
                      7: If you try to quit from the editor without
                      8: writing out your changes, the editor will complain.
                      9: Generally it's wisest to leave the editor by typing
                     10: 
                     11: w
                     12: q
                     13: 
                     14: rather than just 'q'.  I'll put you in the editor;
                     15: type those two commands to leave.  Then type
                     16: "ready".
                     17: #create bpres
                     18: Washington Adams Jefferson
                     19: #create pres
                     20: Washington Adams Jefferson
                     21: #pipe
                     22: ex +'set prompt noopt open' pres
                     23: #user
                     24: #unpipe
                     25: #cmp pres bpres
                     26: #succeed
                     27: Note that the editor typed
                     28:        "pres" 1 line, 27 characters
                     29: This is the number of characters and lines it wrote into the file.
                     30: This is reassuring - it tells you the write was successful.
                     31: It also lets you compare these numbers with those it typed
                     32: just before it gave you a ':'.
                     33: #log
                     34: #next
                     35: 4.1a 10
                     36: 4.2a 5

unix.superglobalmegacorp.com

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