into glob

For conversions.

Convert value to a glob pattern.

Command Type

built-in

Signature

> into glob {flags} ...rest

Parameters

  • ...rest: For a data structure input, convert data at the given cell paths.

Input/output types:

input output
glob glob
string glob
list<string> list<glob>
table table
record record

Examples

Convert string to glob.

> '1234' | into glob
1234

Convert glob to glob.

> '1234' | into glob | into glob
1234

Convert filepath to glob.

> ls Cargo.toml | get name | into glob

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.