> For the complete documentation index, see [llms.txt](https://daseldocs.tomwright.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daseldocs.tomwright.me/v1/usage/flags/multiple.md).

# Multiple

## Description

Tells dasel to select or put multiple items.

This causes the [dynamic](/v1/selectors/dynamic.md) selector to return all matching results rather than the first, and enables the [all indexes](/v1/selectors/all-indexes.md) selector.

All matches will be output on a new line.

## Usage

Pass the `-m`, `--multiple` flag to [select](/v1/usage/select.md) or [put](/v1/usage/put.md) commands.

## Example

### Select

```shell
$ echo '[{"name": "Tom"}, {"name": "Jim"}]' | dasel -p json -m '.[*].name'
"Tom"
"Jim"
```

### Put

```shell
$ echo '[{"name": "Tom"}, {"name": "Jim"}]' | dasel put string -p json -m '.[*].name' Frank
[
  {
    "name": "Frank"
  },
  {
    "name": "Frank"
  }
]
```
