#!/bin/sh
#
#SYNOPSIS
#  mktxt recsiz file
#
#DESCRIPTION
#  The chop program is invoked to read a file with a specified record
#  size  and  convert  it  to plain text, with newlines at the end of
#  every line and trailing white stuff trimmed.  The output  file  is
#  created with ".txt" on the end of its name.
#
#AUTHOR
#  John Chambers <jc@trillian.mit.edu>

if [ $# -ne 2 ];then echo Usage: $0 recsiz file; exit 1; fi
L=$1; shift
F=$1; shift

#echo recsiz=$L file=$F

chop $L < $F | sed 's/  *$//' > $F.txt

