procmail
[Top] [All Lists]

Re: tail and procmail

2009-11-15 21:03:54
VAR1=`ls -l`
VAR2=`tail -1 <<< "$VAR1"`

On Sun, 2009-11-15 at 18:43 -0700, LuKreme wrote:
I tried to do this:

VAR1 = `/path/to/executable`
VAR2 = `tail −1 $VAR1`

It didn't work, obviously.

How can I 'tail' to get the last line of a multi-line VAR in procmail?

-- 
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠

____________________________________________________________
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>