Re: [9fans] Duff's rc paper: Why awk?

2013-06-11 Thread markus schnalke
[2013-06-11 14:24] Rudolf Sykora > > plan 9 sed reads a second line before quitting (note the "def" in the > > example > > below); sed does not work. Erik, thanks for the explanation. However, the man page states: q Quit. Branch to the end of the script. Do not start a new cycle.

[9fans] Duff's rc paper: Why awk?

2013-06-07 Thread markus schnalke
Hoi, I've read [0], which is enlightening btw, but there is one thing, in Section 27, which I don't understand: Why is awk(1) used there? fn read{ $1=`{awk '{print;exit}'} } [0] http://static.tobold.org/rc/rc-duff.html I rather would have used sed(1), which is le