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:

Get hands-on with 1400+ tech skills courses.