procmail
[Top] [All Lists]

Re: moving first line to end in sed

2000-06-30 21:57:31
On Fri, 30 Jun 2000, David W. Tamkin wrote:

       sed -e 1h -e 1d -e \$G

Ah, yes, I forgot about G.

In fact, even with -n, it can be done in three instructions:

      sed -ne 1h -e \$G -e 2,\$p

Gotta be careful there ... some versions of sed don't let you put the -n
and the -e in the same argument like that.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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