Em Andamento

Data manipulation

I need assitance in manipulating a file. The trailer row of a file is alsways incorrect for a file. The trailer row does not count the number of times a delimited character is being counted.

e.g. The command "cut -f 2 -d, TEMPFILE | grep CHARACTER1 | wc -l"

output is 38147

The command "cut -f 2 -d, TEMPFILE | grep CHARACTER2 | wc -l"

output is 64966

Here is the output for tailing the last line of TEMPFILE:

tail -1 TEMPFILE

001,9,MDBK,610,0038147,0064966,O,20070331,025200,P

I need a perl script to be called in a ksh script to ensure and if neccessary overwrite the correct value in the trailer row.

This should take less than 1/2 hr for someone to construct.

Habilidades: Perl

Ver mais: e value, trailer, manipulation, data p, construct, number manipulation, delimited data, cgi manipulation, tailing, perl output, number times character count, 001, number count, line data, tail, data script, count number, script manipulation, correct data, count number character, count data, perl file line, perl script line count, count number character file, line file perl

Acerca do Empregador:
( 0 comentários ) Rye, United States

ID do Projeto: #137472