File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.lib / learn / editor / L51.1a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

#print
You can also use relative addresses of the +1 or -1
sort with context searches.  For example, to
print the line after a line containing "cat",
you can say
  /cat/+1p
How would you print the line before the next line
containing the word "help" at the beginning
of the line?  Try some experiments if you want,
but in the end type "answer COMMAND" where COMMAND
is the correct command to do that.
#copyin
#user
#uncopyin
#match /^help/-1p
#match /^help/-1
#match /^help/-
#match /^help/-p
#succeed
The "p" isn't necessary, of course.
#cmp X1 X2
#log
#next
52.1a 10
52.2a 5

unix.superglobalmegacorp.com

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