#!/bin/csh -f # Turning EZ files into plain ASCII (more or less) # This script will: # - concatenate the EZ files listed in the series of Root # files that the 'foreach' specifies, and # - render those EZ files (an ATK datastream) into TROFF, # then # - translate the troff into (reasonable) plain ASCII text, # which is # - concatenated to a file named for the current directory, # with a .asc extension ################################################################ # create a new output file touch ${PWD:t}.asc; delete ${PWD:t}.asc; touch ${PWD:t}.asc # loop to get all the Root*.slides files foreach foo (Root-[0-9]*.slides) echo "" echo " ...Using Root file" $foo "..." datacat -I $foo | ezprint -troff -stdin | troff -a >> ${PWD:t}.asc end