awk:awk_variables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
awk:awk_variables [2020/07/15 09:30] – external edit 127.0.0.1 | awk:awk_variables [2021/01/06 15:55] (current) – [FNR] peter | ||
---|---|---|---|
Line 204: | Line 204: | ||
It represents the number of the current record in the current file. | It represents the number of the current record in the current file. | ||
+ | |||
+ | <code bash> | ||
+ | echo -e "One Two\nOne Two Three\nOne Two Three Four" | awk 'FNR < 3' | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | < | ||
+ | One Two | ||
+ | One Two Three | ||
+ | </ | ||
<WRAP info> | <WRAP info> | ||
Line 242: | Line 253: | ||
10 | 10 | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | awk ' | ||
+ | </ | ||
+ | |||
+ | </ | ||
---- | ---- | ||
Line 264: | Line 284: | ||
</ | </ | ||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
---- | ---- |
awk/awk_variables.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1