EDITF(2ICD)

NAME
editf - edit source file, include or update header

SYNOPSIS
editf [options] file [(login)name]

OPTIONS

-a author
    For changing the or specification of your own "Author(s)" field string (def.: full login name).

-b byuser
    For specification of your own "Modified by" field string (def.: full login name).

-c cdate
    For changing the or specification of your own "Creation date" field string (def.: current date or last modified date if existing file). Must be of the form: 07-Apr-1985.

-h host
    For changing the or specification of your own "Host machine" field string (def.: build in).

-l language
    For changing the or specification of your own "Language" field string (def.: build in, choice made by looking to the file extension).

-m mdate
    For changing the or specification of your own "Modification date" field string (def.: current date). Must be of the form: 07-Apr-1985.

-o opsys
    For changing the or specification of your own "Operating system" field string (def.: build in).

-p pname
    For changing the or specification of your own "Name/Version" field "Name" string. (def.: file name without extension). Note: This "program name" is most times not equal to the file name or the "routine name".

-r rname
    For specification of your own "routine name". (def.: file name without extension). Note: The "routine name" is most times equal to the file name (for standardization).

-t ltype
    For specification of your own language type. (def.: based on file name extension). Note: For 'ltype' you must give a single letter which must match one of the build in extension letters. With this option you can choice your own header without the need to have a file extension.

-v version
    For changing the or specification of your own "Name/Version" field "Version" string (def.: 1.1).

-A  Append header to existing source file.

-E  Don't start an editor.

-S  Short header in place of full header.

DESCRIPTION
Editf is a program that update or include a standard header in your source file. The input 'file' must be in the 'cwd'. The input file is moved to ".Efile", and is deleted after program execution. If you specify the name argument, then this name is used to retrieve a full name out of the passwd file. This full name (if found) or name unchanged shall be used (except if certain options are given) to fill in the "Author(s)" field or "Modified by" field (depending on file existence). If the optional argument isn't specified the login user name is used to retrieve the full name. The vi editor is used as the default editor. By setting the environment variable EDITOR you can use another editor. Depending on file extension the following header type is added.
File extension:		Language:	Header type:
	.c	C	C
	.f	FORTRAN	FORTRAN
	.l	LEX	C
	.y	YACC	C
	.r	RATFOR	RATFOR
	.p	PASCAL	PASCAL
	.e	EFL	RATFOR
	.s	ASSEMBLER	C

EXAMPLES
$ editf file.c "S. de Graaf"
$ editf file.c simon

AUTHOR
S. de Graaf

SPECIAL CONSIDERATIONS
Header and telephone number are only supported for the Network Theory Section. The file name may not contain a slash '/'. The file name length must be in range 1 to 12.

SEE ALSO
makeman(2ICD), vi(1)