#!/bin/bash
#Mtools1join gets filenames from pipe partnames
#It cats them to stdout and then removes them. 
#When path to the file part} is recieved, it exits.

while true; do
 part=`cat partnames`
 if [ `basename $part` = "part}" ]; then break; fi
 cat $part
 rm $part
done

