W3cubDocs

/Nushell

bits for bits

Various commands for working with bits.

Signature

> bits {flags}

Input/output types:

input output
nothing string

Notes

You must use one of the following subcommands. Using this command as-is will only produce this help message.

Subcommands:

name type usage
bits and Builtin Performs bitwise and for integers.
bits not Builtin Performs logical negation on each bit.
bits or Builtin Performs bitwise or for integers.
bits rol Builtin Bitwise rotate left for integers.
bits ror Builtin Bitwise rotate right for integers.
bits shl Builtin Bitwise shift left for integers.
bits shr Builtin Bitwise shift right for integers.
bits xor Builtin Performs bitwise xor for integers.

Tips: Command bits was not included in the official binaries by default, you have to build it with --features=extra flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/bits.html