# 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"
  }
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daseldocs.tomwright.me/v1/usage/flags/multiple.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
