nushell/docs/commands/open.md

34 lines
452 B
Markdown
Raw Normal View History

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