OT: scripting, removing trailing ^L

William James McEachran billmc at dataffinity.com
Fri Dec 23 09:52:31 PST 2005


On Fri, Dec 23, 2005 at 11:51:01AM -0500, Barry Wiseman wrote:
> >
> >gnuplot adds an unneed "^L" to the end of the graph pcl file. I've got
> >to come up with a way to remove just this one character at the end of the
> >file.  I've got a mental block on removing just the final character.
> >
> >sed? awk?
> 
> dd if=sourcefile of=destfile bs=`expr \`wc -c sourcefile | cut -c1-7\` - 
> 1` count=1

Thanks Barry!
That did the trick. 

Thanks to all.
-- 
Bill McEachran


More information about the Filepro-list mailing list