how to implement word count bash shell
- by codemax
hey guys.
I am trying to write my own code for the word count in bash shell.
I did usual way. But i wanna use pipe's output to count the word.
So for eg the 1st command is cat and i am redirecting to a file called med.
Now i have to use to 'dup2' function to count the words in that file. How can i write the code for my wc?
This is the code for…