procmail
[Top] [All Lists]

Re: generate line number in log files

2013-05-05 07:28:21
in message <20130505115657.GB1901@ratatosk>,
wrote Erik Christiansen thusly...

On 04.05.13 17:10, Eric Smith wrote:

Is there any method for having line numbers and script filenames
printed in the procmail log files.

Line numbers only need to be visible when the file is viewed by a
human, I figure.

In which case ...

  # cat -n log

  # less --LINE-NUMBERS log


So, if you're viewing the file in vim:

:set number

That covers the use cases that my imagination offers up.


-- 

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>