Annotation of 43BSD/usr.lib/learn/editor/L50.1a, revision 1.1.1.1

1.1       root        1: #print
                      2: So far all the addresses you have used have been
                      3: either line numbers, '$', or '.' (or combinations
                      4: thereof).  The most useful addresses are none of
                      5: those, but are specifications of lines by content.
                      6: Anything you can ask the substitute command
                      7: to find in a line, you can ask the editor to find
                      8: in a file.  In particular,
                      9:  /xx/p
                     10: is a valid command with a line address 
                     11:  /xx/
                     12: and the 'p' command operator.  The address
                     13:  /xx/
                     14: means 'the next line containing an "xx"'.
                     15: So this command prints out the next line which
                     16: has an "xx" on it.  Edit the file "text" and
                     17: print the line which has "cat" on it.  Then
                     18: leave the editor and type "ready".
                     19: #create text
                     20: This is a short list of
                     21: things you might find
                     22: in the Sears, Roebuck
                     23: catalog.
                     24:  tools
                     25:  furniture
                     26:  electrical parts
                     27:  clothes
                     28:  appliances
                     29:  garden equipment.
                     30: #copyout
                     31: #user
                     32: #uncopyout
                     33: grep :catalog\. .ocopy >/dev/null
                     34: #log
                     35: #next
                     36: 50.1b 10

unix.superglobalmegacorp.com

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