On 24 March 2010 08:29, mrkamran82 <[email protected]> wrote:
> Alternately,i will have to write another java program who will take files as
> input,read the files one by one,count the no of records/transactions
> contained in a single file and write duplicate file with number of
> count/lines in the first line and beneath the original content. But this
> process is not time and resource efficient. Kindly advise me the solution.

On a decent linux box it's a one-liner: you can add line numbers to a
file with...

nl logfilename

...or...

cat -n logfilename

...I think this falls into the emerging ugly category of "Let's try
and get Log4j to billions of jobs that are already done perfectly by
other tools". Seriously, does nobody know how to use cron and
logrotate any more?

Regards,
Michael Erskine.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to