Skip to content

Commit 82cf280

Browse files
authored
Add table entries for discarding command output (#834)
1 parent 84c52ac commit 82cf280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

book/coming_from_bash.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Note: this table assumes Nu 0.60.0 or later.
2626
| `touch test.txt` | `touch test.txt` | Create a file |
2727
| `> <path>` | `\| save --raw <path>` | Save string into a file |
2828
| `>> <path>` | `\| save --raw --append <path>` | Append string to a file |
29+
| `> /dev/null` | `\| ignore` | Discard command output |
30+
| `> /dev/null 2>&1` | `out+err> /dev/null` | Discard command output, including stderr |
2931
| `cat <path>` | `open --raw <path>` | Display the contents of the given file |
3032
| | `open <path>` | Read a file as structured data |
3133
| `mv <source> <dest>` | `mv <source> <dest>` | Move file to new location |

0 commit comments

Comments
 (0)