#! /bin/sh # # Cleans up the epsi (ps) files: # - strips the Preview part # # Parameters: t=0 f=0 PROG=`basename $0` # ========== Help routine start help_dis () { cat < fnam ; nline++} skip>0 {nskip++} END {print " Printed lines " nline " Skipped lines " nskip " for file " FILENAME } awk_end } # ========== awk routine end # wri_awk > tmp.awk fnamtmp=tmp.xxx gawk -v fnam=$fnamtmp -f tmp.awk $fnam mv tmp.xxx $fnam1 rm -f tmp.awk