provided answer for count of number of lines and words in a file (#10558)

This commit is contained in:
Abhishek Yadav 2025-03-27 03:49:14 +05:30 committed by GitHub
parent 9775849857
commit 4d5756fd2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>