Skip to content

Commit 4d5756f

Browse files
provided answer for count of number of lines and words in a file (bregman-arie#10558)
1 parent 9775849 commit 4d5756f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

topics/linux/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,14 @@ $OLDPWD
22492249
22502250
<details>
22512251
<summary>How to count the number of lines in a file? What about words?</summary><br><b>
2252+
2253+
For these we can use `wc` command.
2254+
2255+
1. To count the number of lines in file
2256+
```wc -l```
2257+
2258+
2. To count the number of words in file
2259+
```wc -w```
22522260
</b></details>
22532261
22542262
<details>

0 commit comments

Comments
 (0)