#!/usr/local/plan9/bin/rc sed -e 's/ is a duplicate.$//' | while (file = `{read}) { if (test -f $"file) { echo rm $"file >> /mnt/mem/log rm $"file } }