replace carriage returns

Jay R. Ashworth jra at baylink.com
Tue Jul 6 12:09:27 PDT 2004


On Tue, Jul 06, 2004 at 02:07:34PM -0500, Richard D. Williams wrote:
> When importing data from a mysql database, is there any way in filepro 
> to find and replace a carriage-return in a field?
> 
> I can nont get the programmer I am dealing with to do it on his end.

Nah, you never can.

Your source file has lines ending in, what? <cr><lf>?  So you have an
unwanted extra <cr>, right?

The easiest way to do this, if it's practical to add it to your
workflow, is to use the tr(1) command to delete that character.

Check the manpage for the exact syntax.

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

	"You know: I'm a fan of photosynthesis as much as the next guy,
	but if God merely wanted us to smell the flowers, he wouldn't 
	have invented a 3GHz microprocessor and a 3D graphics board."
					-- Luke Girardi


More information about the Filepro-list mailing list