#!/usr/local/bin/bash

# 2013-08-06 (EO) - Modified 2017-03-31 including 4th sub-category (CG)

for file in `ls -1 ../PN/*.rmf`
do
  filenovers=`echo $file | awk -F"_" '{print $1"_"$2"_"$3"_"$4".rmf"}'`
  filenovers=`basename $filenovers`
  echo "ln -s ${file} ./${filenovers}" 
  ln -s ${file} ./${filenovers}
done
