From: Lynne Williams Date: Sun, 17 Feb 2013 17:08:47 +0000 (-0500) Subject: Update shell_cheatsheet.md X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a32adb44f2cc56400d01d2679b9d4d64fcd85da;p=swc-workshop.git Update shell_cheatsheet.md --- diff --git a/shell_cheatsheet.md b/shell_cheatsheet.md index c700356..7cc29ca 100644 --- a/shell_cheatsheet.md +++ b/shell_cheatsheet.md @@ -170,13 +170,13 @@ continues the loop as long as the value in the variable COUNTER is less than 10 |-----------------|-------------| | `grep [options] day haiku.txt` | finds every instance of the string `day` in the file haiku.txt and pipes it to standard output | -| grep options | | -|--------------|--| +| grep options | | +|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `-E` | tells grep you will be using a regular expression. Enclose the regular expression in quotes. _Note:_ the power of `grep` comes from using regular expressions. Please see the regular expressions sheet for examples | | `-i` | makes matching case-insensitive | | `-n` | limits the number of lines that match to the first n matches | | `-v` | shows lines that do not match the pattern (inverts the match) | -| `-w` | outputs instances where the pattern is a whole word | +| `-w` | outputs instances where the pattern is a whole word | ### b) How to find files with certain properties... * **`find . -type d` -->