Em Andamento

Script to edit a flat files

This script will edit all files in a directory.

file 1 looks like: (there will be several files like this to edit all in one dir)

plan=plan1

f5=63000

File 2 will have the entry: (there will be a file like this that goes with each of the above files but this file is not in the same dir)

9.2003=56000

What I need is:

1. plan=plan1 so f5 base setting is 60000 (there are 5 different plans with different settings.

2. if the line from file 2 (9.2003=56000) is less than the base setting (56000 < 60000) then subtract 56000 from 60000. That gives you 4000.

3. add the 4000 to the base setting 60000 for a final 64000 and edit the f5= line in file 1 to f5=64000

4. if the line from file 2 was grater than or equal to the base setting just set f5 in file one to 60000

The line from file two will be month.year=number. It should always use the previous month so if this is the 10th month of 2003 it will look for the line that starts with 9.2003.

It very important that the script only changes one line in file 1 all other lines should remain unchanged.

I would like a shell or perl script to do this. I need a good coder that knows what he or she is doing and knows how to test their work. I do not have time to test your code when I get it everything should be well tested and production ready.

## 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) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Linux

Habilidades: Engenharia, Linux, MySQL, Perl, PHP, Arquitetura de software, Teste de Software

Ver mais: run shell script from php, i need a good coder, php less than or equal to, in linux shell script, test plans, need to edit, get files, flat line, edit a c++, shell script perl, perl script shell script, flat php, shell add file, perl script file, php flat, flat form, file edit software, perl dir, linux program shell, edit php executable, linux file edit, perl script done, linux shell program, perl script install software, shell linux source code

Acerca do Empregador:
( 16 comentários ) United States

ID do Projeto: #2999364

Premiar a:

realperlguy

See private message.

$17 USD em 5 dias
(7 Avaliações)
2.8

9 freelancers estão ofertando em média $28 para este trabalho

krokyvw

See private message.

$51 USD in 5 dias
(194 Comentários)
7.8
gchelidze

See private message.

$17 USD in 5 dias
(14 Comentários)
4.4
bitnux

See private message.

$34 USD in 5 dias
(12 Comentários)
3.9
vw905182vw

See private message.

$17 USD in 5 dias
(9 Comentários)
3.2
roibanadi

See private message.

$12.75 USD in 5 dias
(13 Comentários)
2.8
i7981

See private message.

$17 USD in 5 dias
(5 Comentários)
2.3
boehme

See private message.

$17 USD in 5 dias
(0 Comentários)
0.0
vw649390vw

See private message.

$68 USD in 5 dias
(1 Comentário)
0.0