procmail
[Top] [All Lists]

Re: Problem with lists expansion

1997-04-29 07:10:00
On Tue, 29 Apr 1997, era eriksson wrote:

Talking to myself as usual: 

[...] a number of sed and PERL ways to solve previous problem
As they are as many programming solutions as they are people able to
program, this is my way to solve it :
CPDOM1= `gawk 'BEGIN {ORS=""; getline last; print last}; NF>0{print "|" $0
}' cpdomains.1` 
Under Solaris, substitute nawk to gawk.
Greetings
Pascal A. Dupuis

--
K:      Cobalt's metal, hard and shining;
        Cobol's wordy and confining;
        KOBOLDS topple when you strike them;
        Don't feel bad, it's hard to like them.
                -- The Roguelet's ABC

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