SETDSRC(1)
NAME
setdsrc - add, update, or delete ClearDDTS Record field in a
file
SYNOPSIS
setdsrc -a [ -f filename] fieldname [value]
setdsrc -d | -r [ -f filename] fieldname [value]
DESCRIPTION
Use setdsrc to read, write, or add to the contents of a file
in ClearDDTS format.
The setdsrc utility can be used to modify files in ClearDDTS
format. The fieldname parameter defines the name of the
field to add/delete/read.
-a adds or updates the fieldname field.
-d deletes the specified fieldname field.
-r reads the fieldname field and writes the contents to
standard out.
By default the file modified is the .ddtsrc file in the
users home directory. This can be changed with the -f
filename option by explicitly specifying the file to be
modified.
EXAMPLES
The following adds the record "Foo: Hello World" to the
user's .ddtsrc file
setdsrc -a Foo "Hello World"
The following extracts the value of the "Class" field from
file /tmp/mumble.
setdsrc -r -f /tmp/mumble Class
DIAGNOSTICS
If the field does not exist when using the -r option the
exit status is 1. Otherwise it is 0.
FILES
~login_name/.ddtsrc
SEE ALSO
Appendix A: Contents of a Defect Record in the
ClearDDTS Administrator's Guide