Search Results

Search: Posts Made By: rovf
1,317
Posted By rovf
Yes, but only the writing end of the pipe,...
Yes, but only the writing end of the pipe, because if you close it, the reading end will close it by itself. At least this is what the example in th gawk docs say.

If you want to explicitly close...
1,317
Posted By rovf
This is fine, because it closes the *writer*. You...
This is fine, because it closes the *writer*. You are closing the *reader*.
1,317
Posted By rovf
You need to close the writing side of the pipe,...
You need to close the writing side of the pipe, not the reading side. From the gawk manual:

======
For example, if you open a pipe with this: "sort -r names" | getline foo
then you must close...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy