@@ -115,8 +115,7 @@ _Letters are shown capitalized for readability only._ _Capslock should be off._
115115| mkdir -p [ dir] /[ dir] | Create nested directories |
116116| rmdir [ dir] | Remove directory ( only operates on empty directories ) |
117117| rm -R [ dir] | Remove directory and contents |
118- | [ command] \| [ command] | Allows to combine multiple commands that generate output, e.g. `cat data.txt | pbcopy` |
119- | less | Output content delivered in screensize chunks |
118+ | less [ file] | Output file content delivered in screensize chunks |
120119| [ command] > [ file] | Push output to file, keep in mind it will get overwritten |
121120| [ command] >> [ file] | Append output to existing file |
122121| [ command] < [ file] | Tell command to read content from a file |
@@ -127,7 +126,7 @@ _Letters are shown capitalized for readability only._ _Capslock should be off._
127126| ----------- | ----------- |
128127| find [ dir] -name [ search_pattern] | Search for files, e.g. ` find /Users -name "file.txt" ` |
129128| grep [ search_pattern] [ file] | Search for all lines that contain the pattern, e.g. ` grep "Tom" file.txt ` |
130- | grep -r [ search_pattern] [ file ] | Recursively search for all lines that contain the pattern |
129+ | grep -r [ search_pattern] [ dir ] | Recursively search in all files in specified directory for all lines that contain the pattern |
131130| grep -v [ search_pattern] [ file] | Search for all lines that do NOT contain the pattern |
132131| grep -i [ search_pattern] [ file] | Search for all lines that contain the case-insensitive pattern |
133132| mdfind [ search_pattern] | Spotlight search for files (names, content, other metadata), e.g. ` mdfind skateboard ` |
0 commit comments