Skip to content

Add "Coming from Bash" entries for discarding command output #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions book/coming_from_bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Note: this table assumes Nu 0.60.0 or later.
| `touch test.txt` | `touch test.txt` | Create a file |
| `> <path>` | `\| save --raw <path>` | Save string into a file |
| `>> <path>` | `\| save --raw --append <path>` | Append string to a file |
| `> /dev/null` | `\| ignore` | Discard command output |
| `> /dev/null 2>&1` | `out+err> /dev/null` | Discard command output, including stderr |
| `cat <path>` | `open --raw <path>` | Display the contents of the given file |
| | `open <path>` | Read a file as structured data |
| `mv <source> <dest>` | `mv <source> <dest>` | Move file to new location |
Expand Down