Changes need to data array

Tamamlanmış İlan edilme: Jul 10, 2010 Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

I have a 25 mB file with 4 fields (see below) and 900,000 records. At the moment it's a tab-delimited .DAT file. I need to eliminate most of the records and to reduce the file to three fields instead of four, following some simple rules:

STEP 1 - Eliminate unnecessary records

1) If Field 3 or Field 4 is blank, delete the record and look at the next record.

2) If Field 3 or Field 4 contains any alphabet letters (A-Z), delete the record and look at the next record.

3) If the value in Field 2 of the current record matches the value in Field 2 of the previous record, delete the current record (but not the previous record), then look at the next record.

4) Repeat steps 1-3 until all of the records have been examined.

STEP 2 - Combine Fields 1 & 2

1) For all remaining records, combine Fields 1 and 2 into one Field, so if Field 1 contains "US" and Field 2 contains "92084" the new combined field should be: "US92084"

--------------------

Here are the Fields in the original .dat file:

CountryCode MailCode Longitude Latitude

US 30183 34.3217 -84.562

US 30127 33.9135

US 31535 31.5046 -82.8246

The compressed file should look like this:

CCMailCode Longitude Latitude

US30183 34.3217 -84.562

US31535 31.5046 -82.8246

Also, I'd like to keep a copy of the program (so maybe it should be an .EXE file), because I might need to run it again in a year or so on a similar array. The program can be written in any language, I suppose. If it's in PHP, that would a bonus, so I can edit it. Thanks!

C++ Programlama PHP Visual Basic

Proje NO: #735278

Proje hakkında

33 teklif Uzak proje Aktif Jul 11, 2010

Seçilen:

oceeman

Good day! Software already made. Please check PMB.

%selectedBids___i_period_sub_7% gün içinde 30%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(2 Değerlendirme)
2.2

Bu iş için 33 freelancer ortalamada $49 teklif veriyor

kazaa

Hello I can provide a solution written in php. Please contact me if you have any questions.

$30 USD in 2 gün içinde
(31 Değerlendirme)
6.3
WinstonCrawford

Kindly check the PM

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(27 Değerlendirme)
5.9
jamalazza

hi please check your pm

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(36 Değerlendirme)
6.1
wincent

Quick work. ready to start.

$30 USD in 0 gün içinde
(80 Değerlendirme)
6.0
pegla

Hi, check pmb

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(27 Değerlendirme)
5.4
kamosion

It's veryu simple task for me. I can make less than 1 hour. Can start immediatelly.

$50 USD in 0 gün içinde
(12 Değerlendirme)
5.4
vserv

Can do this easily. Ready to start. Thanks

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(34 Değerlendirme)
5.1
Ahmedn1

Please Check PM

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(8 Değerlendirme)
4.4
Manuilov

hello, please, check pmb

$49 USD in 0 gün içinde
(10 Değerlendirme)
4.4
genti157

It can be done.

$40 USD in 0 gün içinde
(12 Değerlendirme)
3.8
Blackgato

Please see inbox.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(4 Değerlendirme)
3.8
rizwanfpak

Hi, I am ready to start this project. Please check your inbox for more details. Thanks

$70 USD in 3 gün içinde
(4 Değerlendirme)
3.3
easyonthemayo

Hello, I can do this for you reliably and repeatably for any file size.

$50 USD in 0 gün içinde
(2 Değerlendirme)
3.4
adicosoi

Can be ready really fast. In php if you need it that way.

$30 USD in 0 gün içinde
(3 Değerlendirme)
2.8
look4Work

sir plz check pm !

$30 USD in 0 gün içinde
(7 Değerlendirme)
2.7
PavPS

As result you will get output file and source. See PM. Thx

$30 USD in 2 gün içinde
(1 Yorum)
2.8
leiradel

Pure C application (will deliver both the executable and source code) or Lua (which you can edit and run without recompiling.) Fully commented source code in both cases. No GUI, command line only. Delivery in two hours Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
2.0
phpClassA

I'm good with file handling and PHP coding in general. Let me make it done.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
1.0
barath0811

Hi i can do that in PHP. Thanks

$100 USD in 5 gün içinde
(0 Değerlendirme)
0.0
sunivdeveloper

I will make VB application for your job.

$90 USD in 2 gün içinde
(0 Değerlendirme)
0.0