When cut encounters consecutive delimiters it seems to count each instance as a field, at least with spaces. Is this typical behavior for any delimiter?
Thank you. Awk's default behavior is easy to grasp, but I am trying to understand this cut example in the book. Just trying to understand the counting principle at work here. It just seems a field pops out of nowhere. for example:
word1 word2
one delimiter, two fields
word1 word2
two consecutive delimiters in a row, 4 fields
word1 word2
3 consecutive delimiters in a row, 5 fields
Correct? In the first example the delimiter is not counted as a field, but with consecutive occurrences we simply count each one as an occurrence of a field.