Ralph Corderoy <ra...@inputplus.co.uk> wrote: |> (For the list: mawk(1) requires a fflush("") in order to "getline < |> NAME" a file NAME that has been written via "print >> NAME" before, |> even though fflush("") is not standard and i cannot imagine a |> situation where an awk(1) script would not like to see a fflush("") on |> NAME before it starts a getline.) | |Can you not close() NAME after writing to it before re-opening it for |getline? From mawk(1): | | Close is used to reread a file or command,
Bummer. Never used close(), never seen it. Didn't try yet, but it'll surely fix the problem with mawk(1). Thanks Ralph. (Poor Thomas Dickey, excuse me, excuse me.) --steffen