From d21e57b4bcf34ee515e12e48b08fdc887b2777e4 Mon Sep 17 00:00:00 2001 From: Lynne Williams Date: Sun, 17 Feb 2013 11:02:57 -0500 Subject: [PATCH] Update shell_cheatsheet.md --- shell_cheatsheet.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/shell_cheatsheet.md b/shell_cheatsheet.md index df21855..42d0084 100644 --- a/shell_cheatsheet.md +++ b/shell_cheatsheet.md @@ -61,17 +61,16 @@ See the cheatsheet on regular expressions for more "wildcard" shortcuts. ### b) How to redirect to a file and get input from a file ... -#### Definitions: +| Command | Description | +|---------|---------------------------------------------------------------------------------------------------------------------------------| +| `>` | write `stdout` to a new file; overwrites any file with that name (e.g., `ls *.md > mardkownfiles.txt`) | +| `>>` | append `stdout` to a previously existing file; if the file does not exist, it is created (e.g., `ls *.md >> markdownfiles.txt`) | +| `<` | | +| `<<` | | + +#### Glossary: * **stdout**: * **stdin**: -* **stderr**: - -| Command | Description | -|---------|-------------| -| `>` | -| `>>` | -| `<` | -| `<<` | ### e) How to use the output of one command as the input to another with a pipe... ### f) That combining single-purpose filters with pipes is the most productive way to use the shell... -- 2.26.2