bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anomalous handling of last "field" in line


From: Christopher Durant
Subject: Anomalous handling of last "field" in line
Date: Thu, 02 Oct 2008 16:25:58 +0100

If $n is the last field in a line the it will contain a newline as its last character. This applies also if the line is "split" where e.g. split ($0, field) will extract a field[n] which terminates with a newline. length($n) correctly numbers the characters in the last field to include the newline character.

This "feature" seems to have no benefits.

Christopher





reply via email to

[Prev in Thread] Current Thread [Next in Thread]