Let's practice what we've learned so far in the following exercises. The solutions to these exercises have been provided in the next lesson.
Problem 1
Use the functionality of byCharacter.go
, byLine.go
, and byWord.go
in order to create a simplified version of the wc(1)
UNIX utility. wc
(word count) is a Unix command that generates the following statistics in the files specified in the arguments: number of lines, word count, and byte and character count.
Get hands-on with 1200+ tech skills courses.