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
- cut -d: -f1
Related problems
Start free on Cariara · Coding problems · System design studio
Easy · Text Processing · cut
passwd.txt has colon-separated records like root:x:0.
Print the first field of every line.
Start free on Cariara · Coding problems · System design studio
Coding practice is in SolveMe.Open