Find Jobs
Hire Freelancers

Parsing Text Documents for MySQL

$30-100 USD

Completed
Posted over 20 years ago

$30-100 USD

Paid on delivery
# MAIL FROM:all-THISServer RCPT TO:SW-THAT DATA SUBJECT:PRIVATE PROPERTY DIG NOTICE - 324746708 SUBJECT ::PRIVATE PROPERTY DIG NOTICE - 324746708 DIG NUMBER ::324746708 AMENDED DIG NOTICE ::NO CONTACT PERSON NAME ::N I C K POC PHONE NUMBER ::847-303-5800 COMPANY ::U.S. WATERPROOFING COMPANY DIG DATE ::09/08/2003 10:13:00 EMERGENCY ::NO ACTIVITY COMMENT :: FROM STREET NUMBER ::10826 FROM STREET DIR ::S TO STREET NUMBER ::10826 TO STREET DIR ::S TO STREET NAME ::TROY STREET SUFFIX ::ST WARD ::19 LOCATION COMMENT ::SCHEDULED WATERPROOFING TO BE PERFORMED: LOCATORS: LOCATION COMMENT ::WILL YOU LOCATION COMMENT ::PLEASE LOCATE WITHIN (5 FEET) OF THE SOUTH AND EAST LOCATION COMMENT ::WALL OF LOCATION COMMENT ::PROPERTY. OUR FAX HERE IS 403-303-5258. THANKS! DISTRIBUTED TO :: 5, 15, 21, 29, 122, 134, 146, 148 . QUIT I need either PHP or Perl script to parse this file and enter it as a single record in a MySQL database? The first 6 lines of text are not needed. Everything from “SUBJECT?? to the last “LOCATION COMMENT?? are needed as fields in the database. What is on the left of the “::?? can be eliminated I want different field names in the MySQL database. From “DISTRIBUTED TO?? to the end of the document can be eliminated. I have many of these files, each formatted the same way and each file has a unique file name without any extension example: 11244201 [login to view URL] SW 20030904 N 324746708 The file name has important information that is not in the document itself. The first 8 digits of the file name represent a key. The next 16 characters need to be stripped away. The “SW?? needs to be saved. The 20030904 is the date need to be saved. The “N?? needs to be saved. The “32474670?? can be stripped away. The Script would have to loop over many of these files and enter a record in the database for each. If a duplicate entry appears it would need to prompt for action: “REPLACE?? or “SAVE AS NEW RECORD?? while showing fields from both records for comparison. A 27 field table in the MySQL database updated daily with this script. 5 fields from the document name 21 fields from within the document and one uniquely generated by the MySQL database. I've had to remove all email symbology from the post with a - ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4) The data can either be uploaded as function of the script from the endusers computer or it can be run as a batch form the server one the documents ard sent over. 5) A script that will create the field names and table structure of the MySQL database ready to accept records for the parsing script. ## Platform Slackware Linux 9.0 Running Apache, PHP, Perl and MySQL The enduser will be on a windows box using IE
Project ID: 2973713

About the project

30 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 14 days
5.0 (44 reviews)
4.6
4.6
30 freelancers are bidding on average $61 USD for this job
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (96 reviews)
6.6
6.6
User Avatar
See private message.
$25.50 USD in 14 days
4.9 (66 reviews)
5.7
5.7
User Avatar
See private message.
$42.50 USD in 14 days
5.0 (32 reviews)
5.1
5.1
User Avatar
See private message.
$59.50 USD in 14 days
5.0 (27 reviews)
4.6
4.6
User Avatar
See private message.
$42.50 USD in 14 days
4.4 (58 reviews)
5.1
5.1
User Avatar
See private message.
$29.75 USD in 14 days
4.9 (18 reviews)
4.3
4.3
User Avatar
See private message.
$76.50 USD in 14 days
5.0 (22 reviews)
4.2
4.2
User Avatar
See private message.
$21.25 USD in 14 days
4.7 (31 reviews)
4.0
4.0
User Avatar
See private message.
$34 USD in 14 days
5.0 (9 reviews)
3.2
3.2
User Avatar
See private message.
$21.25 USD in 14 days
5.0 (4 reviews)
2.8
2.8
User Avatar
See private message.
$63.75 USD in 14 days
5.0 (2 reviews)
2.5
2.5
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (2 reviews)
2.0
2.0
User Avatar
See private message.
$51 USD in 14 days
4.9 (5 reviews)
1.5
1.5
User Avatar
See private message.
$25.50 USD in 14 days
4.0 (1 review)
0.8
0.8
User Avatar
See private message.
$509.15 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$25.50 USD in 14 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$34 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$17 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Brookfield, United States
3.5
3
Member since Sep 12, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.