OT: scripting, removing trailing ^L
Barry Wiseman
barry at gensoftdes.com
Fri Dec 23 08:51:01 PST 2005
William James McEachran wrote:
> Slightly off-topic.
> The data comes from filePro, some of it passes thru 'gnuplot', and in
> the end the gnuplot graph is incorporated into the filepro output form.
> The whole thing then is converted with 'pcl6'/ghostpcl into a PDF file
> Result, a PDF file with data & a graph.
>
> 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
-----------------------------------------------------------------
Barry Wiseman barry at gensoftdes.com
Genesis Software Designs, Inc. Voice: (212) 889-9191
18 E. 41 Street, New York, NY 10017 Fax: (212) 889-1589
-----------------------------------------------------------------
More information about the Filepro-list
mailing list