We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cffd4d commit 941b6b6Copy full SHA for 941b6b6
penultimate.awk
@@ -1,4 +1,6 @@
1
# Penultimate word of a Record
2
+# Example: awk -f penultimate.awk files/lorem.dat
3
+#
4
# Not too much to explain here, NF stores the number of fields in the current record
5
# NF-1 points to field before last and $(NF-1) will be its value.
6
{print $(NF-1)}
record_replace.awk
# File record substitution
+# Example: awk -f record_replace.awk files/lorem.dat
# Third line must become: This not latin
# Fifth: Neither this
NR==3{print "This is not latin";next}
0 commit comments