procmail
[Top] [All Lists]

Re: condition matching from a file

1997-01-21 18:22:49
On Tue, 21 Jan 1997, James L. McGill wrote:
On Tue, 21 Jan 1997, mailbox wrote:
    * $"`cat word.list | awk '(NR>1){printf("|")};{printf($1)}'`"
I do not mean to beat a dead horse, but isn't:
      * $"`awk '(NR>1){printf("|")};{printf($1)}' < word.list`"
a lot more efficient than using cat?

Yes. That works also, and is shorter.  The error was due to me
interpolating something I had been given but didn't understand. I
guess I get the "unnecessary use of cat" award for the day.
David                         |\      _,,,---,,_
                        ZZZzz /,`.-'`'    -.  ;-;;,_
                             |,4-  ) )-,_. ,\ (  `'-'
                            '---''(_/--'  `-'\_)