#!/bin/sh

# t2p <tapepvmtrace>
# outputs a picl version of <tapepvmtrace>.
# The output is correctly sorted.
# Picl nodes are numbered in order of creation of the
# corresponding tape tasks.

if [ $# != 1 ]
then echo usage: t2p tapepvmtrace
     exit
fi

if [ ! -f $1 ]
then echo $1: no such trace
     exit
fi

sort +4n -5 +5n -6 +0n -1 $1 | tape2picl
  
