OT: scripting, removing trailing ^L
Bob Stockler
bob at trebor.iglou.com
Fri Dec 23 09:00:33 PST 2005
William James McEachran wrote (on Fri, Dec 23, 2005 at 11:19:16AM -0500):
| 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?
How about tr?
tr -d '\014' <file1 >file2
Bob
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).
More information about the Filepro-list
mailing list