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

1.1       root        1: #print
                      2: You can use all the special characters in the
                      3: search commands.  For example,
                      4:  /^cat/p
                      5: prints the first line that BEGINS with 'cat'.
                      6: You can even leave out the 'p':
                      7:  /^cat/
                      8: does the same thing.
                      9: 
                     10: Now go into file "text" with the editor and
                     11: print the first line that ENDS with 'dog'.
                     12: Then leave the editor and type 'ready'.
                     13: #create Ref
                     14: :the right dog
                     15: #create text
                     16: This is a file which
                     17: contains several occurrences
                     18: of the word 'dog' in several
                     19: places.  It would be a doggone
                     20: shame if you didn't find
                     21: the right dog
                     22: to print out.
                     23: #copyout
                     24: #user
                     25: #uncopyout
                     26: grep 'dog' .ocopy >X3
                     27: tail -1 X3 >X2
                     28: #cmp Ref X2
                     29: #log
                     30: #next
                     31: 50.1c 10
                     32: 50.2c 5

unix.superglobalmegacorp.com

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