First Field

Easy · Text Processing · cut

Problem

passwd.txt has colon-separated records like root:x:0.

Print the first field of every line.

Approaches

Related problems

Start free on Cariara · Coding problems · System design studio

Coding practice is in SolveMe.Open