mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 23:59:11 +00:00
provided answer for count of number of lines and words in a file (#10558)
This commit is contained in:
parent
9775849857
commit
4d5756fd2b
@ -2249,6 +2249,14 @@ $OLDPWD
|
||||
|
||||
<details>
|
||||
<summary>How to count the number of lines in a file? What about words?</summary><br><b>
|
||||
|
||||
For these we can use `wc` command.
|
||||
|
||||
1. To count the number of lines in file
|
||||
```wc -l```
|
||||
|
||||
2. To count the number of words in file
|
||||
```wc -w```
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user