nushell/docs/commands/into_binary.md
JT 96a1bf5f8d
Experiment: Allow both $true/true and $false/false (#4696)
* Change true/false to keywords

* oops, clippy

* Both kinds of bools

* Add in some boolean variables

* disable py virtualenv test for now
2022-03-02 19:55:03 -05:00

859 B

title layout version
into binary command 0.59.0

Convert value to a binary primitive

Signature

> into binary ...rest

Parameters

  • ...rest: column paths to convert to binary (for table input)

Examples

convert string to a nushell binary primitive

> 'This is a string that is exactly 52 characters long.' | into binary

convert a number to a nushell binary primitive

> 1 | into binary

convert a boolean to a nushell binary primitive

> true | into binary

convert a filesize to a nushell binary primitive

> ls | where name == LICENSE | get size | into binary

convert a filepath to a nushell binary primitive

> ls | where name == LICENSE | get name | path expand | into binary

convert a decimal to a nushell binary primitive

> 1.234 | into binary