#!/bin/sh

folder=$PWD
for entry in "$folder"/*
do
  #echo "Processing: $entry"
  file_name=$(basename $entry)
  FILE="$entry"/edgefile.tsv
  if [ -f "$FILE" ]; then
    #Check the file has not been sorted already 
		sorted_f="$entry"/edgefile_sorted.tsv
    if  [ -f "$sorted_f" ]; then
        echo "Deleting $FILE "
				rm $FILE
    fi
  fi
  #cp "$entry"/modified_prop_count.tsv "$target"/"$file_name"_modified_prop_count.tsv
done
