Home Explore Blog CI



nushell

commands/docs/ignore.md
2fb360f95fbba09114c220d91e2b89bbc1c8b361091961c400000003000002c2
---
title: ignore
categories: |
  core
version: 0.104.0
core: |
  Ignore the output of the previous command in the pipeline.
usage: |
  Ignore the output of the previous command in the pipeline.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `ignore` for [core](/commands/categories/core.md)

<div class='command-title'>Ignore the output of the previous command in the pipeline.</div>

## Signature

```> ignore {flags} ```


## Input/output types:

| input | output  |
| ----- | ------- |
| any   | nothing |
## Examples

Ignore the output of an echo command
```nu
> echo done | ignore

```

Chunks
cd017edc (1st chunk of `commands/docs/ignore.md`)
Title: ignore
Summary
The `ignore` command in Nushell is a core utility designed to discard the output generated by the preceding command within a pipeline. Its primary function is to prevent the flow of data from one command to the next, effectively silencing the output of the previous operation. This can be useful in scenarios where the output of a command is irrelevant or undesirable for subsequent processing. The `ignore` command accepts any type of input, effectively consuming it, and produces no output, ensuring that nothing is passed further down the pipeline. It has no flags or arguments to configure its behavior; its sole purpose is to act as a sink for data. An example of its usage is demonstrated with the command `echo done | ignore`, where the output 'done' from the `echo` command is completely discarded, and nothing is printed to the console as a result, showcasing its ability to suppress unwanted outputs in a Nushell pipeline.