I executed
cut -d '~' -f 2 on input
RSC
AED
FCB
A~RS
and I obtained
RSC
AED
FCB
RS
I realized that cut will return entire line if the delimiter does not exist.
It is that true?
cut
I executed
cut -d '~' -f 2 on input
RSC
AED
FCB
A~RS
and I obtained
RSC
AED
FCB
RS
I realized that cut will return entire line if the delimiter does not exist.
It is that true?
Best Answer
It's true. POSIX define cut -f option as:
and this repeated again in
-s
: