Skip to content

Commit 3fe28a2

Browse files
authored
Added $NF example inline with NF example
1 parent ee888ff commit 3fe28a2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,17 @@ $ awk '{print NF}' lorem_ipsum.dat
267267
8
268268
10
269269
````
270+
vs.
271+
272+
```` shell
273+
$ awk '{print $NF}' lorem_ipsum.dat
274+
elit.
275+
condimentum.
276+
ex.
277+
tellus.
278+
elit.
279+
facilisis.
280+
````
270281

271282
`FS` holds the valued of the *field separator*, this value is a single-character string or a `regex` that matches the separations between fields in an input record.
272283

0 commit comments

Comments
 (0)