Solution 4: Go Concurrency
Let’s solve the challenge set in the previous lesson.
We'll cover the following...
Solution
Here’s the concurrent version of wc(1)
that saves its output to a file. The wc(1)
utility creates a file output.csv
and then stores the total number of lines, words, and characters in the file.
To check the contents on the output.csv
file, copy and paste the below command in the terminal window:
Access this course and 1400+ top-rated courses and projects.