Skip to content

Commit

Permalink
linux: Add grep command explanation (bregman-arie#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Hamad authored Nov 11, 2021
1 parent af7e1a9 commit 4207ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ They take in input (<) and output for a given file (>) using stdin and stdout.
</summary><br><b>

- sed: a stream editor. Can be used for various purposes like replacing a word in a file: `sed -i s/salad/burger/g`
- grep: a search tool. Used to search, count or match a text in a file:
- searching for any line that contains a word in a file: `grep 'word' file.md`
- or displaying the total number of times a string appears in a file: `grep -c 'This is a string' file.md`
</b></details>

<details>
Expand Down

0 comments on commit 4207ceb

Please sign in to comment.