CONTEXT

Section: User Commands (1)
Updated: 6 June 1985
Index Return to Main Contents
 

NAME

context - find context of lines  

SYNOPSIS

context [ nr_of_lines ]

 

DESCRIPTION

Context finds the context of located text. It accepts for example cc(1) diagnostics as standard input and gives you the context.  

OPTIONS

If the optional argument; a number `nr_of_lines' is given, context(1) prints that much context before and after the line in question.  

EXAMPLES

% cc foo.c |& context
**************
* "foo.c", line 5: warning: old-fashioned initialization: use =
*****
  
  main() {
        int i;
*       long ix.v;
        
        i = getpid();
        if (ix_v = getchar() == EOF)

**************
* "foo.c", line 5: syntax error
*****
  
  main() {
        int i;
*       long ix.v;
        
        i = getpid();
        if (ix_v = getchar() == EOF)

**************
* "foo.c", line 5: warning: old-fashioned initialization: use =
*****
  
  main() {
        int i;
*       long ix.v;
        
        i = getpid();
        if (ix_v = getchar() == EOF)

**************
* "foo.c", line 5: v undefined
*****
  
  main() {
        int i;
*       long ix.v;
        
        i = getpid();
        if (ix_v = getchar() == EOF)

**************
* "foo.c", line 8: ix_v undefined
*****
        long ix.v;
        
        i = getpid();
*       if (ix_v = getchar() == EOF)
                exit(1);
        exit(0);
  }


%
 

SEE ALSO

cc(1), grep(1)  

AUTHOR

Copyright (C) 1985 by North Coast Programming.

This program, and any documentation for it, is copyrighted by North Coast Programming. It may be copied for non-commercial use only, provided that any and all copyright notices are preserved.

Please report any bugs and/or fixes to:

North Coast Programming
6504 Chestnut Road
Independence, OH 44131

...decvax!cwruecmp!ncoast!bsa
ncoast!bsa@Case.CSNet

This manual page by ...!mcvax!enea!tut!jty (Jyrki Yli-Nokari), to
whom I give many thanks.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 06:22:30 GMT, December 12, 2024