Skip to content

Commit 4601847

Browse files
authored
coming_from_bash.md: add references to explore and first (#1558)
1 parent 22014e7 commit 4601847

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/coming_from_bash.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ $env.Path = ($env.Path | prepend 'C:\Program Files\Git\usr\bin')
3232
| | `\| save --append <path>` | Append command output to a file as structured data |
3333
| `> /dev/null` | `\| ignore` | Discard command output |
3434
| `> /dev/null 2>&1` | `out+err>\| ignore` or `o+e>\| ignore` | Discard command output, including stderr |
35-
| `command 2>&1 \| less` | `command out+err>\| less` or `command o+e>\| less` | Pipe stdout and stderr of a command into less |
35+
| `command 2>&1 \| less` | `command out+err>\| less` or `command o+e>\| less` | Pipe stdout and stderr of an external command into less (NOTE: use [explore](explore.html) for paging output of internal commands) |
3636
| `cmd1 \| tee log.txt \| cmd2` | `cmd1 \| tee { save log.txt } \| cmd2` | Tee command output to a log file |
37+
| `command \| head -5` | `command \| first 5` | Limit the output to the first 5 rows of an internal command (see also `last` and `skip`) |
3738
| `cat <path>` | `open --raw <path>` | Display the contents of the given file |
3839
| | `open <path>` | Read a file as structured data |
3940
| `mv <source> <dest>` | `mv <source> <dest>` | Move file to new location |

0 commit comments

Comments
 (0)