← Linux and the Command Line Lesson 19 of 51 · 5 XP

Warm-up: the first column warm-up

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

awk splits each line into columns at spaces: $1 is the first, $2 the second. The command in curly braces runs for every line:

awk '{print $1}'

From the line Kai 95 only Kai remains.

Task. The input is lines name score. Print only the names.

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.