top | item 44794893

(no title)

efrecon | 6 months ago

Because awk understands "columns" better.

echo '999 888' | awk '{print $2}'

prints 888

discuss

order

cluckindan|6 months ago

How is that different from

    echo '999 888' | cut -f2 -d " "
except for the default delimiter being space for awk?

Eduard|6 months ago

   echo '999  888' | cut -f2 -d " " # notice two consecutive spaces
returns NULL.

bregma|6 months ago

How can it be "better" when it is exactly the same?