Hi,

I'd like to report the following behavior of cut.
I execute

$ echo "abc" | cut -f 2 -d " "

and I expect the empty line as output but you get "abc\n".
I believe the empty line is correct because I selected the second
field which is empty.
If you select the 3rd field

$ echo "abc cde" | cut -f 3 -d " "

it outputs the empty line and works as expected which supports my
reasoning.

I am running Debian with

$ cut --version | head -1
cut (GNU coreutils) 8.25

Jens



Reply via email to