Home Explore Blog CI



nushell

commands/docs/into_glob.md
d91cfdd4b6b59c6673de628bc34cf5cf5e9ee7426eb40e640000000300000405
---
title: into glob
categories: |
  conversions
version: 0.104.0
conversions: |
  Convert value to glob.
usage: |
  Convert value to glob.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `into glob` for [conversions](/commands/categories/conversions.md)

<div class='command-title'>Convert value to glob.</div>

## 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       |
| list\<string\> | list\<glob\> |
| record       | record     |
| string       | glob       |
| table        | table      |
## Examples

convert string to glob
```nu
> '1234' | into glob
1234
```

convert glob to glob
```nu
> '1234' | into glob | into glob
1234
```

convert filepath to glob
```nu
> ls Cargo.toml | get name | into glob

```

Chunks
031a782b (1st chunk of `commands/docs/into_glob.md`)
Title: into glob: Convert values to glob patterns
Summary
The `into glob` command converts various data types (string, list of strings, record, table) into glob patterns. It's useful for working with filepaths and patterns in Nushell. It can also operate on data structures by converting data at specified cell paths.