#!/bin/bash

ls -l ../*/size_distribution_SMALLD/family.dat_hc | awk '{ print gensub("\\.\\.\\/([^\\/]*).*","\\1",1,$9); }' > ls.out

for FILE in `cat ls.out` ; do

  cp ../$FILE/size_distribution_SMALLD/family.dat_hc $FILE"_family.dat_hc"

done


