root/bin/sort_map @ 7750
1 | 1131 | aaronmk | #!/bin/sh
|
---|---|---|---|
2 | # Sorts a map spreadsheet in the standard order.
|
||
3 | # The standard order sorts on the output column, so that 2-step XML mappings
|
||
4 | # will produce output in the same order as a direct mapping using join, allowing
|
||
5 | # the results of the two methods to be compared using diff.
|
||
6 | |||
7 | selfDir="$(dirname -- "$0")" |
||
8 | |||
9 | 3776 | aaronmk | # uniq: remove duplicates resulting from multiple outputs for the same input
|
10 | "$selfDir/sort" 1 0|uniq |