#!/bin/bash

# link data file with the same type as that given by the directory name

eval "$(
cat ../table.txt |\
grep -v '#' |\
grep -v '^$' |\
awk -v what=$(basename $PWD) '$6==what { printf("ln -sf ../%s.xy .\n",$1) }'
)"

cat ../table.txt |\
grep -v '#' |\
grep -v '^$' | awk -v what=$(basename $PWD) '$6==what' > table.txt

