Project

General

Profile

« Previous | Next » 

Revision 179

join: Changed order of args and redirects to be more intuitive

View differences:

scripts/util/join
7 7
def main():
8 8
    try: _prog_name, map_1_path = sys.argv
9 9
    except ValueError:
10
        raise SystemExit('Usage: '+sys.argv[0]+' map_1 <map_0 >joined_map')
10
        raise SystemExit('Usage: '+sys.argv[0]+' <map_0 map_1 >joined_map')
11 11
    
12 12
    # Get map 1
13 13
    map_1 = {}
mappings/join_all_vegbank
7 7
for map in *-VegX.*.csv; do
8 8
    type="${map%.*}" # remove extension
9 9
    type="${type#*.}" # remove up to last "."
10
    ../scripts/util/join "VegX-VegBank.$type.csv" <"$map"|\
10
    ../scripts/util/join <"$map" "VegX-VegBank.$type.csv"|\
11 11
    ../scripts/util/sort 1 >"${map/VegX/VegBank}" # sort on output col
12 12
done

Also available in: Unified diff