ravi45722 has asked for the wisdom of the Perl Monks concerning the following question:
-rw-r--r--. 1 root root 2.1G Feb 21 16:00 SMSCDR_POSTPAID_160221150000 +_10.102.39.37_AS.log -rw-r--r--. 1 root root 1.5G Feb 21 17:00 SMSCDR_POSTPAID_160221160000 +_10.102.39.37_AS.log -rw-r--r--. 1 root root 2.3G Feb 21 18:00 SMSCDR_POSTPAID_160221170000 +_10.102.39.37_AS.log -rw-r--r--. 1 root root 1.7G Feb 21 19:00 SMSCDR_POSTPAID_160221180000 +_10.102.39.37_AS.log
I have written a program to process these files for some counters. That program is OK. But now I want to know which line is processing now in the file. For that I cant print it on terminal because it is running in cronjob. and I cant maintain log files for just line number. What are the best practice for these????
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Want to know Line number of the input file
by Discipulus (Canon) on Feb 24, 2016 at 12:03 UTC | |
|
Re: Want to know Line number of the input file
by marto (Cardinal) on Feb 24, 2016 at 12:08 UTC | |
|
Re: Want to know Line number of the input file
by FreeBeerReekingMonk (Deacon) on Feb 29, 2016 at 23:04 UTC | |
|
Re: Want to know Line number of the input file
by RonW (Parson) on Feb 29, 2016 at 21:58 UTC |