diff --git a/README.md b/README.md index 26db7a2..2679aa0 100644 --- a/README.md +++ b/README.md @@ -656,6 +656,12 @@ They take in input (<) and output for a given file (>) using stdin and stdout.
- 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` + - cut: a tool for cutting out selected portions of each line of a file: + - syntax: `cut OPTION [FILE]` + - cutting first two bytes from a word in a file: `cut -b 1-2 file.md`, output: `wo`