Count the Words
Print how many words essay.txt has: the number alone.
Example 1
essay.txt
the quick brown fox jumps over
prints
6
Constraints
essay.txthas up to 12 lines
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- First Three LinesBeginner
- Hello, NameBeginner
- How Many ErrorsBeginner
- Into a New FolderBeginner
- Last Two LinesBeginner
- Lines With ERRORBeginner
- One After the OtherBeginner
- Only the Text FilesBeginner