Count the Lines
Print how many lines notes.txt has: the number alone, nothing after it.
Example 1
notes.txt
milk eggs tea
prints
3
Constraints
notes.txthas up to 20 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
- Count the WordsBeginner
- First Three LinesBeginner
- Hello, NameBeginner
- How Many ErrorsBeginner
- Into a New FolderBeginner
- Last Two LinesBeginner
- Lines With ERRORBeginner
- One After the OtherBeginner