Last active
          August 29, 2015 14:27 
        
      - 
      
 - 
        
Save skube/4e2dc4d83d3e3ec8a02c to your computer and use it in GitHub Desktop.  
Revisions
- 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,11 +12,12 @@ Abridged from [Codecademy](https://www.codecademy.com/en/courses/learn-the-comma - `rm -r` removes _directories_ ## Useful Utils - `grep` : searches for a text pattern and outputs it. - `sed` : searches for a text pattern, modifies it, and outputs it. - `sort` : sorts lines of text alphabetically. - `uniq` : filters duplicate, adjacent lines of text. ###grep `grep` stands for "global regular expression print". It searches files for lines that match a pattern and returns the results. It is also case sensitive. Use `i` option for case insensitive. >Find all instances of "Mount" in `mountain.txt' regardless of case ```sh @@ -27,6 +28,7 @@ $ grep -i Mount mountains.txt $ grep -R searchForSomething /path/to/directory ``` ###sed `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". Works on each line separately. Use `g` flag to match all instances on line, not just first. ```sh $ sed 's/snow/rain/g' forests.txt  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,16 +19,16 @@ Abridged from [Codecademy](https://www.codecademy.com/en/courses/learn-the-comma `grep` stands for "global regular expression print". It searches files for lines that match a pattern and returns the results. It is also case sensitive. Use `i` option for case insensitive. >Find all instances of "Mount" in `mountain.txt' regardless of case ```sh $ grep -i Mount mountains.txt ``` > Recursively search (within) files within a directory ```sh $ grep -R searchForSomething /path/to/directory ``` `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". Works on each line separately. Use `g` flag to match all instances on line, not just first. ```sh $ sed 's/snow/rain/g' forests.txt ``` ## Putting it all together: Pipes & Redirects  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,11 +24,11 @@ $ grep -i Mount mountains.txt ``` > Recursively search (within) files within a directory ``` grep -R searchForSomething /path/to/directory ``` `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". Works on each line separately. Use `g` flag to match all instances on line, not just first. ``` $ sed 's/snow/rain/g' forests.txt ``` ## Putting it all together: Pipes & Redirects  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #:notebook_with_decorative_cover: Understanding Command Line Abridged from [Codecademy](https://www.codecademy.com/en/courses/learn-the-command-line) ##List  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ #:notebook_with_decorative_cover: Understanding Command Line Abridged from [Udemy](https://www.codecademy.com/en/courses/learn-the-command-line) ##List - `ls -t` orders files and directories by the time they were last modified  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,6 +20,10 @@ ``` $ grep -i Mount mountains.txt ``` > Recursively search (within) files within a directory ``` grep -R _search term_ /path/to/directory ``` `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". Works on each line separately. Use `g` flag to match all instances on line, not just first. ```bash  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 14 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,21 +3,29 @@ ##List - `ls -t` orders files and directories by the time they were last modified ##Copy, Move, Rename & Delete## - `cp` copies files - `mv` moves and renames files - `rm` removes _files_ - `rm -r` removes _directories_ ## Useful Utils - `sort` : sorts lines of text alphabetically. - `uniq` : filters duplicate, adjacent lines of text. - `grep` : searches for a text pattern and outputs it. - `sed` : searches for a text pattern, modifies it, and outputs it. `grep` stands for "global regular expression print". It searches files for lines that match a pattern and returns the results. It is also case sensitive. Use `i` option for case insensitive. >Find all instances of "Mount" in `mountain.txt' regardless of case ``` $ grep -i Mount mountains.txt ``` `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". Works on each line separately. Use `g` flag to match all instances on line, not just first. ```bash $ sed 's/snow/rain/g' forests.txt ``` ## Putting it all together: Pipes & Redirects - **Pipe** is used to pass output to another **program** or utility. - **Redirect** is used to pass output to either a **file** or stream  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,13 @@ ##List - `ls -t` orders files and directories by the time they were last modified ##Copy, Move, Rename & Delete## - `cp` copies files - `mv` moves and renames files - `rm` removes _files_ - `rm -r` removes _directories_ ## Pipes & Redirects - **Pipe** is used to pass output to another **program** or utility. - **Redirect** is used to pass output to either a **file** or stream  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,13 @@ ##List - `ls -t` orders files and directories by the time they were last modified - ##Copy, Move, Rename & Delete## - `cp` copies files - `mv` moves and renames files - `rm` removes _files_ - `rm -r` removes _directories_ - ## Pipes & Redirects - **Pipe** is used to pass output to another **program** or utility. - **Redirect** is used to pass output to either a **file** or stream  - 
        
skube revised this gist
Aug 21, 2015 . No changes.There are no files selected for viewing
 - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,15 @@ #:notebook_with_decorative_cover: Understanding Command Line ##List - `ls -t` orders files and directories by the time they were last modified ##Copy, Move, Rename & Delete - `cp` copies files - `mv` moves and renames files - `rm` removes _files_ - `rm -r` removes _directories_ ## Pipes & Redirects - **Pipe** is used to pass output to another **program** or utility. - **Redirect** is used to pass output to either a **file** or stream - `sort` : sorts lines of text alphabetically. - `uniq` : filters duplicate, adjacent lines of text. - `grep` : searches for a text pattern and outputs it.  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #:notebook_with_decorative_cover:Basic Useful Command Line Commands - `ls -t` orders files and directories by the time they were last modified - `cp` copies files - `mv` moves and renames files  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ #Basics :boot: - `ls -t` orders files and directories by the time they were last modified - `cp` copies files - `mv` moves and renames files @@ -11,7 +12,7 @@ - `uniq` : filters duplicate, adjacent lines of text. - `grep` : searches for a text pattern and outputs it. - `sed` : searches for a text pattern, modifies it, and outputs it. `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". ```bash $ sed 's/snow/rain/g' forests.txt  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,6 @@ - `sed` : searches for a text pattern, modifies it, and outputs it. - `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". ```bash $ sed 's/snow/rain/g' forests.txt ```  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,9 @@ - `sort` : sorts lines of text alphabetically. - `uniq` : filters duplicate, adjacent lines of text. - `grep` : searches for a text pattern and outputs it. - `sed` : searches for a text pattern, modifies it, and outputs it. - `sed` stands for "stream editor". It accepts standard input and modifies it based on an expression, before displaying it as output data. It is similar to "find and replace". ``` $ sed 's/snow/rain/g' forests.txt ```  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,9 @@ - `rm -r` removes _directories_ - **Pipe** is used to pass output to another **program** or utility. - **Redirect** is used to pass output to either a **file** or stream - `sort` : sorts lines of text alphabetically. - `uniq` : filters duplicate, adjacent lines of text. - `grep` : searches for a text pattern and outputs it. - `sed` : searches for a text pattern, modifies it, and outputs it.  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 5 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,8 @@ - `ls -t` orders files and directories by the time they were last modified - `cp` copies files - `mv` moves and renames files - `rm` removes _files_ - `rm -r` removes _directories_ - **Pipe** is used to pass output to another **program** or utility. - **Redirect** is used to pass output to either a **file** or stream  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ - `ls -t` orders files and directories by the time they were last modified - `cp` copies files `mv` moves and renames files `rm` removes _files_ `rm -r` removes _directories_  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 0 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,9 @@ `ls -t` orders files and directories by the time they were last modified `cp` copies files `mv` moves and renames files `rm` removes _files_ `rm -r` removes _directories_ **Pipe** is used to pass output to another **program** or utility. **Redirect** is used to pass output to either a **file** or stream  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,12 @@ `ls -t` orders files and directories by the time they were last modified `cp` copies files `mv` moves and renames files `rm` removes _files_ `rm -r` removes _directories_ **Pipe** is used to pass output to another **program** or utility.  - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,11 @@ `ls -t` orders files and directories by the time they were last modified `cp` copies files `mv` moves and renames files `rm` removes _files_ `rm -r` removes *directories* **Pipe** is used to pass output to another **program** or utility. **Redirect** is used to pass output to either a **file** or stream  - 
        
skube renamed this gist
Aug 21, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ **Pipe** is used to pass output to another **program** or utility. **Redirect** is used to pass output to either a *file* or stream  - 
        
skube renamed this gist
Aug 21, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. - 
        
skube revised this gist
Aug 21, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ **Pipe** is used to pass output to another **program** or utility. **Redirect** is used to pass output to either a _file_ or stream  - 
        
skube created this gist
Aug 21, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ **Pipe** is used to pass output to another **program** or utility. **Redirect** is used to pass output to either a *file* or stream.