root/mappings/join_all_vegbank @ 188
1 | 184 | aaronmk | #!/bin/bash
|
---|---|---|---|
2 | 70 | aaronmk | # 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 | 158 | aaronmk | type="${map%.*}" # remove extension |
9 | 70 | aaronmk | type="${type#*.}" # remove up to last "." |
10 | 179 | aaronmk | ../scripts/util/join <"$map" "VegX-VegBank.$type.csv"|\ |
11 | 158 | aaronmk | ../scripts/util/sort 1 >"${map/VegX/VegBank}" # sort on output col |
12 | 70 | aaronmk | done
|