Humdrum Extras

ridx examples


This page gives example input and output data for the ridx program. The output data from these tests can be compared to output on your platform using the same input file in order to determine if there is a problem with the ridx program. If the output you generate is not the same as the output listed in the individual tests, then something may be wrong with the compiled program or your computing environment (or a bug added to the program after the example output was generated).


Test Index



Test 001: Remove all data records.

The command:

     ridx -D input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 002: Remove all null data records.

The command:

     ridx -d input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 003: Remove all global comments.

The command:

     ridx -G input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 004: Remove all null global comments.

The command:

     ridx -g input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 005: Remove all interpretation records.

The command:

     ridx -I input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 006: Remove all null interpretation records.

The command:

     ridx -i input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 007: Remove all local comments.

The command:

     ridx -L input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 008: Remove all null local comments.

The command:

     ridx -l input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 009: Remove all tandem interpretations.

The command:

     ridx -T input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 010: Remove all comments.

The command:

     ridx -C input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 011: Remove all comments except for bibliographic records.

The command:

     ridx -c input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 012: Remove all data lines containing measures.

The command:

     ridx -M input-file > output-file
using the following input, will generate the following output:

input-file:
output-file: