mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:27:44 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
57
docs/commands/into-binary.md
Normal file
57
docs/commands/into-binary.md
Normal file
@ -0,0 +1,57 @@
|
||||
# into binary
|
||||
Convert value to a binary primitive
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> into binary ...args {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* ...args: column paths to convert to binary (for table input)
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -s, --skip <integer>: skip x number of bytes
|
||||
* -b, --bytes <integer>: show y number of bytes
|
||||
|
||||
## Examples
|
||||
convert string to a nushell binary primitive
|
||||
```shell
|
||||
> echo 'This is a string that is exactly 52 characters long.' | into binary
|
||||
```
|
||||
|
||||
convert string to a nushell binary primitive
|
||||
```shell
|
||||
> echo 'This is a string that is exactly 52 characters long.' | into binary --skip 10
|
||||
```
|
||||
|
||||
convert string to a nushell binary primitive
|
||||
```shell
|
||||
> echo 'This is a string that is exactly 52 characters long.' | into binary --skip 10 --bytes 10
|
||||
```
|
||||
|
||||
convert a number to a nushell binary primitive
|
||||
```shell
|
||||
> echo 1 | into binary
|
||||
```
|
||||
|
||||
convert a boolean to a nushell binary primitive
|
||||
```shell
|
||||
> echo $true | into binary
|
||||
```
|
||||
|
||||
convert a filesize to a nushell binary primitive
|
||||
```shell
|
||||
> ls | where name == LICENSE | get size | into binary
|
||||
```
|
||||
|
||||
convert a filepath to a nushell binary primitive
|
||||
```shell
|
||||
> ls | where name == LICENSE | get name | path expand | into binary
|
||||
```
|
||||
|
||||
convert a decimal to a nushell binary primitive
|
||||
```shell
|
||||
> echo 1.234 | into binary
|
||||
```
|
||||
|
Reference in New Issue
Block a user