procmail
[Top] [All Lists]

Re: tail and procmail

2009-11-16 10:12:35
On Sun, Nov 15, 2009 at 10:12 PM, JW Simpson <john(_at_)swajime(_dot_)com> 
wrote:

On Sun, 2009-11-15 at 21:43 -0800, Bart Schaefer wrote:

On Sun, Nov 15, 2009 at 6:04 PM, JW Simpson <john(_at_)swajime(_dot_)com> 
wrote:
VAR1=`ls -l`
VAR2=`tail -1 <<< "$VAR1"`

That might work for versions of bash/ksh/zsh released in the last 3
years or so.  If you happen to have something older, you need

Hmm ... my newbieness shows?

Or perhaps my fogeyness.  I've forgotten how long some of this stuff
has been around, but I know it hasn't been around forever.

I think though, now that you mention it, that it is standard practice to set 
SHELL = /bin/sh ?

Yes, that is standard practice.

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