record buffer provided by awk
we do have a record buffer in awk utility that holds one complete record of a data file.
I want to know that if record buffer changes during script processing, then when are these changes reflected back to the data file? Are they reflected immediately or is there an in-built mechanism available to schedule this change? |
awk by default does not alter the original file at all, even though you may alter the data in certain variables.
If this is not the answer you were after, please explain further what you mean? |
Quote:
|
Yes you can alter NR and FNR (although they are 2 you would generally not alter as it will obscure your results), but more like FS, OFS, RS, ORS and the like.
|
All times are GMT -5. The time now is 01:29 AM. |