---
title: "They can always run stderr through uniq. :-) — Larry Wall Quote #74 | QuotesBy.net"
description: "They can always run stderr through uniq. :-) — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # They can always run stderr through uniq. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)\#74

[Programming](https://quotesby.net/Larry-Wall/programming/)[Debugging](https://quotesby.net/Larry-Wall/debugging/)[Shell](https://quotesby.net/Larry-Wall/shell/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CThey%20can%20always%20run%20stderr%20through%20uniq.%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F74%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CThey%20can%20always%20run%20stderr%20through%20uniq.%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F74%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F74%2F)

## About this quote

What does it mean?You can filter duplicate error messages using the uniq command.In plain termsUse uniq to remove duplicate stderr output.What can you take from it?Clean up error logs by deduplication.

### Where it applies

- debugging sessions
- log monitoring

### Putting it to work

- pipe stderr to uniq
- script log cleanup

### Questions to consider

- How do you handle unsorted duplicates?
- What are alternatives to uniq?

### Another view

uniq only works on sorted input, so unsorted errors may remain duplicated.

## More from Larry Wall

1. > Not that I have anything much against redundancy. But I said that already.

[Permalink to quote \#73](https://quotesby.net/Larry-Wall/73/ "Permalink to quote 73")
2. > I'd put my money where my mouth is, but my mouth keeps moving.

[Permalink to quote \#75](https://quotesby.net/Larry-Wall/75/ "Permalink to quote 75")
3. > So far we've managed to avoid turning Perl into APL. :-)

[Permalink to quote \#72](https://quotesby.net/Larry-Wall/72/ "Permalink to quote 72")

## Related quotes

1. > In general, if you think something isn't in Perl, try it out, because it usually is. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#33](https://quotesby.net/Larry-Wall/33/ "Permalink to quote 33")
2. > ...this does not mean that some of us should not want, in a rather dispassionate sort of way, to put a bullet through csh's head.

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#55](https://quotesby.net/Larry-Wall/55/ "Permalink to quote 55")
3. > Premature optimization is the root of all evil (or at least most of it) in programming.

[Donald Knuth](https://quotesby.net/Donald-Knuth)[Donald Knuth quote \#1](https://quotesby.net/Donald-Knuth/1/ "Permalink to quote 1")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "They can always run stderr through uniq. :-)",
    "url": "https://quotesby.net/Larry-Wall/74/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #74",
            "item": "https://quotesby.net/Larry-Wall/74/"
        }
    ]
}
```
