Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms 5 › Importing Multiple CSV Files
Tagged: import
- This topic has 6 replies, 2 voices, and was last updated 7 years, 11 months ago by
Dave.
-
AuthorPosts
-
January 5, 2018 at 12:53 AM #26857
DaveParticipantI am creating a database of records from notes I originally kept in Evernote. I exported them to HTML files, then converted the HTML files to TXT files. What I want to do is import these into Tap Forms so that each file becomes a record, and each line becomes a field.
I tried to convert the TXT files into tab-separated TSV files (converting lines to tabs using TextWrangler), then merging them all into one file, but the merge method I used in Apple Terminal just gave me one continuous block of tabbed information, without any way to separate each record.
Any suggestions?
January 5, 2018 at 3:34 AM #26858
BrendanKeymasterHi Dave,
You need to make sure that each record is separated by a linefeed. The tabs will separate the fields, but the linefeeds will separate the records.
Then you’ll be able to import the file into Tap Forms.
January 5, 2018 at 3:59 AM #26859
DaveParticipantAny ideas on how to convert a folder full of text files to a single CSV file where each file is separated by a linefeed?
January 5, 2018 at 12:13 PM #26861
BrendanKeymasterA bit of Googling turned up this command you should paste into a Terminal window:
for f in *.txt; do (cat "${f}";) >> finalfile.txt; doneIf you’ve got CSV files, replace
txtwithcsv.I tested it and it turned 3 files I had into one file with a line break in between each file.
January 5, 2018 at 6:05 PM #26871
DaveParticipantGreat! I actually found a similar script, but it worked. One more quick question… if I import a field that contains number values from 1 to 10, can I import that data into a Ratings field?
January 5, 2018 at 7:21 PM #26874
BrendanKeymasterYes, you can. A Rating field is no different than a regular Number field except in the way it displays the data. The rating values are stored as numbers and not as stars.
January 5, 2018 at 9:35 PM #26877
DaveParticipantGreat! Thanks, Brendan.
-
AuthorPosts
You must be logged in to reply to this topic.