![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've got a data set I need to get from FMP to mySQL. I have the procedure all worked out except for one thing: How do I get FMP to omit the extra line feeds when it exports? What I need amounts to a Unix compatible text file. Often, only some of the records have the extra LF, and I haven't found a text editor that lets me do a Find and Replace for an LF by itself and just delete it. Another example of the same issue is exporting the contents of a container field as text. The path and file size data are formatted on three different lines. How can I get rid of the line feeds in there and make the data come out on one line, or even better, in separate fields? Is there a way to get rid of that extra line feed so data saved as ACSII text can be Unix compatible? |
#3
| ||||
| ||||
|
|
In article <91ms33paich80nhpq4mradoc264el97euq (AT) 4ax (DOT) com>, FastWolf wolfsofast (AT) gmail (DOT) com> wrote: I've got a data set I need to get from FMP to mySQL. I have the procedure all worked out except for one thing: How do I get FMP to omit the extra line feeds when it exports? What I need amounts to a Unix compatible text file. Often, only some of the records have the extra LF, and I haven't found a text editor that lets me do a Find and Replace for an LF by itself and just delete it. Another example of the same issue is exporting the contents of a container field as text. The path and file size data are formatted on three different lines. How can I get rid of the line feeds in there and make the data come out on one line, or even better, in separate fields? Is there a way to get rid of that extra line feed so data saved as ACSII text can be Unix compatible? Firstly, are you sure the record data itself doesn't have these "extra line feeds" in it. If they're in the FileMaker fields' data then it's easy to replace them there using a Substitute function in a Calculation field and then export the new field. |
|
When I export data from the Mac version to a CSV file to be uploaded to a website I get a file that the website doesn't like. In the end I found the solution was to export the data from FileMaker to a "CSV", then open that file in Excel and SAve As to a "CSV (Windows)" file and then it worked when uploaded with no problem. |
|
For Find / Replace functions on a Windows file itself, the best, easiest (as well as cheapest - it's free) product I found in a recent search was GSAR. http://gnuwin32.sourceforge.net/packages/gsar.htm It is a small program controlled from the DOS prompt in Windows or via a .BAT file. I'm not sure, but I think you can run one of those from within FileMaker in a similar way to AppleScripts. You do need to learn about the parameters / switches to give it though, as well as the hex values for the the control codes like LF. |
|
I'm not sure how you can find "LF by itself" to replace (I'm assuming you mean as opposed to a CR and LF). Probably the easiest solution would be to first convert CR LF to something else not in anywhere in the text (eg. *-*), then convert the remaining LFs to nothing and finally convert the *-* back to CR LF. |
#4
| |||
| |||
|
|
Is there a way to get rid of that extra line feed so data saved as ACSII text can be Unix compatible? |
![]() |
| Thread Tools | |
| Display Modes | |
| |