#!/bin/sh

rm -f diff.lst
for ITEM in `sort -u all.lst`
do 
  if [ `grep -c $ITEM transferred.lst` -eq 0 ] 
  then 
    echo $ITEM >> diff.lst
  fi 
done

ls /projects/NS2345K/noresm/cases > disk.lst

rm -f not_on_disk.lst
for ITEM in `sort -u diff.lst`
do 
  if [ `grep -c $ITEM disk.lst` -eq 0 ] 
  then 
    echo $ITEM >> not_on_disk.lst
  fi
done 
