Project Detail

String Manipulation between 2 text files  

String Manipulation between 2 text files is project number 301007
posted at GetAFreelancer.com. Click here to post your own project.

 

Bookmark and Share
Free Trial For New Buyers
 

Status: Closed
(Selected Service Provider)

Selected Providers: fstudio

Budget: $30-250

Created: 08/15/2008 at 11:28 EDT

Bid Count: 68

Average Bid: N/A

10/14/2008 at 11:28 EDT

Project Creator: alcheech View PM Post PM
Employer Rating: 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10 (3 reviews)

Bid On This Project
 

Description

Simple string substitution: There are 2 files: One is the string_replace_file and the other is work file. The string_replace_file is a text delimited file with 2 records like the following:

220268720072,8811-001 ($9.95 w/ S&H) ORIG. TRANS

From this file the program will grab both and place them into variables. The first variable will have everything up to the first comma: replace_var (in this case: 220268720072). The second variable is up to from the character after the comma to the first blank and this is called the find_var (in this case 8811-001.

The program will then open the work file: Here is a sample record:

thumbnail(1, "", "8811-001-pinupsonfilm.htm", "8811-001-pinupsonfilm_thm.jpg", 300, 249, "8811-001-PinupsOnFilm.jpg")

With the find_var it will search for the first instance of the find string (in this case 8811-001) and replace EVERYTHING in the quotes from this first instance with the replace_var.

Here is the final record:

thumbnail(1, "", "220268720072", "8811-001-pinupsonfilm_thm.jpg", 300, 249, "8811-001-PinupsOnFilm.jpg")

There may be some records in the work_file that may not be replaced as there are no values found in the search and replace file. To run the program it would be nice to put the program name followed by the work_file and then the string_replacement_file like this:

findreplace <work_file> <string_replace_file> if the parameters are not present the program will ask for them. Attached are the files






Additional files submitted:
work_file
string_replacement_file
final_file

Messages Posted: 1 View project clarification board Post message on project clarification board

Bid On This Project
 
If you are the project creator or one of the bidders Log In for more options
Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

    Bid on this Project