Project

General

Profile

1 1456 aaronmk
#!/bin/sh
2
# Makes a map spreadsheet case-insensitive. The input map's input columns must
3
# start with a lowercase letter in order to be made case-insensitive.
4
5
selfDir="$(dirname -- "$0")"
6
7
if ! test "$#" -eq 1; then
8 3405 aaronmk
    echo "Usage: $0 map >out_map"|fold -s >&2
9 1456 aaronmk
    exit 2
10
fi
11
12
"$selfDir/cols" 0 0 <"$1"|"$selfDir/ucase_first" 0\
13 4163 aaronmk
|env quiet=1 "$selfDir/join_union_sort" "$1"