DCS grading programs

gcopy

Gcopy copies a mark from one grades file to another.

Usage

gcopy [-m markname] [intofile fromfile]

Details

Gcopy copies the mark named markname from the grades file fromfile into the grades file intofile.

If the mark name option is omitted, gcopy interrogates the user for it. If either or both of the file name arguments are omitted, gcopy interrogates the user for both file names.

Both files must define a mark by the name given, or gcopy fails with an error message.

Separate-line comments are not copied, but if any comments in fromfile mention the mark being copied, a warning is given.

If a mark being copied from fromfile would overwrite a non-empty mark in intofile, the user is asked how to proceed. The choices are to skip the mark in fromfile, overwrite the mark in intofile, or abandon copying.

Changes since the previous version

The only significant change is that the user is asked how to proceed if a non-empty mark would be overwritten.