mirror of
https://github.com/nushell/nushell
synced 2025-01-04 09:18:57 +00:00
8c0a2d3c15
* Finish updating * a couple improvements * Update renames * cleanup examples
34 lines
453 B
Markdown
34 lines
453 B
Markdown
---
|
|
title: open
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Opens a file.
|
|
|
|
## Signature
|
|
|
|
```> open (filename) --raw```
|
|
|
|
## Parameters
|
|
|
|
- `filename`: the filename to use
|
|
- `--raw`: open file as raw binary
|
|
|
|
## Examples
|
|
|
|
Open a file, with structure (based on file extension)
|
|
```shell
|
|
> open myfile.json
|
|
```
|
|
|
|
Open a file, as raw bytes
|
|
```shell
|
|
> open myfile.json --raw
|
|
```
|
|
|
|
Open a file, using the input to get filename
|
|
```shell
|
|
> echo 'myfile.txt' | open
|
|
```
|
|
|