Revision 1527
Added by Aaron Marcuse-Kubitza almost 13 years ago
bin/reverse_join | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# Inner-joins two map spreadsheets in the opposite order they are specified in |
|
3 |
|
|
4 |
selfDir="$(dirname -- "$0")" |
|
5 |
|
|
6 |
if ! test "$#" -eq 1; then |
|
7 |
echo "Usage: $0 <map_1 map_0 >joined_map" |
|
8 |
exit 2 |
|
9 |
fi |
|
10 |
|
|
11 |
temp="$(tempfile)" |
|
12 |
trap "rm -f $temp" EXIT |
|
13 |
|
|
14 |
cat >"$temp" # read stdin into file |
|
15 |
"$selfDir/join" <"$1" "$temp" |
|
0 | 16 |
Also available in: Unified diff
Added reverse_join to inner-join two map spreadsheets in the opposite order they are specified in