Gswap interchanges two marks in a grades file. It swaps both the definitions in the header and the values in the student records.
Usage
gswap [-?] [-9] [-m "mark1 mark2"] [files]
Details
Gswap exchanges the mark named mark1 with the mark named mark2 in the grades files. It takes these options:
-9
- Use nine-digit student numbers in the output files, if possible.
-m "mark1 mark2"
- Swap the marks named mark1 and mark2. There must be exactly two marks, and their names must be enclosed within quotation marks.
The definitions of mark1 and mark2 are exchanged in the grades-file header. The previous header is retained, commented out, so that you can refer to it when deciding whether the header needs fixing. Separate-line comments in student records are not altered.
If the mark name options are omitted, gswap interrogates you for them.
If no files are specified, input comes from the standard input and output goes to the standard output. In this case, the mark name options cannot be omitted.
You really should examine the contents of the files, especially the headers, after processing is complete.