nushell/docs/commands/open.md

35 lines
453 B
Markdown
Raw Normal View History

---
title: open
layout: command
version: 0.59.0
---
2019-10-06 14:53:17 +00:00
Opens a file.
2019-10-06 14:53:17 +00:00
## Signature
2019-10-06 14:53:17 +00:00
```> open (filename) --raw```
## Parameters
- `filename`: the filename to use
- `--raw`: open file as raw binary
2019-10-06 14:53:17 +00:00
## Examples
Open a file, with structure (based on file extension)
2019-10-06 14:53:17 +00:00
```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
```