I found this behavior of coreutils utility cut a bit weird
echo "
one,line1
two,line2
three
four,line4
" | cut -d ',' -f1
, got expected result:
one
two
three
four
But:
echo "
one,line1
two,line2
three
four,line4
" | cut -d ',' -f2
, gives outputs:
line1
line2
three
line4
I would expect 3rd line to be empty. Are my expectations wrong?