Project

General

Profile

1
#!/bin/bash
2
# Joins all *-VegX.csv to VegX-VegBank.csv
3

    
4
selfDir="$(dirname -- "$0")"
5
cd "$selfDir"
6

    
7
for map in *-VegX.*.csv; do
8
    type="${map%.*}" # remove extension
9
    type="${type#*.}" # remove up to last "."
10
    ../scripts/util/join <"$map" "VegX-VegBank.$type.csv"|\
11
    ../scripts/util/sort 1 0 >"${map/VegX/VegBank}" # sort on output col
12
done
(18-18/18)