bytes starts-with
for bytes> bytes starts-with {flags} (pattern) ...rest
pattern
: the pattern to match...rest
: for a data structure input, check if bytes at the given cell paths start with the patterninput | output |
---|---|
binary | bool |
record | record |
table | table |
Checks if binary starts with 0x[1F FF AA]
>0x[1FFFAAAA] |bytes starts-with0x[1FFFAA]
true
Checks if binary starts with 0x[1F]
>0x[1FFFAAAA] |bytes starts-with0x[1F]
true
Checks if binary starts with 0x[1F]
>0x[1FFFAAAA] |bytes starts-with0x[11]
false
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/bytes_starts-with.html