hed - interactive and command-line editor for speech file main headers


hed [ options ] file


hed is a program to edit the fields of the main header of a speech file. It can operate in an "interactive" mode, prompting for inputs, or in a command-line mode, wherby replacement values may be entered using program switches. Default operation is interactive; the command line mode is used when any command line switch for header fields is used. hed is also a useful utility for creating new (empty) speech files.

General options and their meanings are:

-I Identify program and exit.

-n Interactive mode but no questions - just create a new file with a default header. If file already exists reports 'file exists', otherwise 'new file'.


Each field in the main header is allocated one option. To insert text specify the text after the option. To delete text specify the null string ("") after the option. Strings are automatically truncated to fit fields if necessary.

-u username Owner of file.

-s source Source Institute of recording.

-d dbase Name of database to which recording belongs.

-S speaker Speaker identification.

-C session Recording session identification.

-D date Recording session date.

-t token Name of token (transcription/title).

-r rep Repetition code of token.

-e environ Recording environment.

-a archive Archiving details.

-c comment Comments.


In interactive mode, each of the above fields are presented in turn, and the user can enter the replacement text, or a single space character to delete the current entry, or a [RETURN] to leave entry unchanged. In addition the user can jump to a particular question by typing "!<num>" and jump to the end by typing "!!". When all the questions have been answered the program prompts you to save (y), quit (q) or re-edit the fields (n).


1.1 - Mark Huckvale.
Fri Jul 09 14:54:31 2004