File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / learn / learnlib / editor / L51.1a
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#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 "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.