<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t" -->

---
title: bashumerate — A programmable iterator for your shell
description: bashumerate is a small bash utility that provides a unified syntax for iterating over files, lines, ranges, and lists in the shell. Instead of juggling for...
canonical: https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: bashumerate — A programmable iterator for your shell | daily.dev
og:description: bashumerate is a small bash utility that provides a unified syntax for iterating over files, lines, ranges, and lists in the shell. Instead of juggling for...
og:url: https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t
og:image: https://api.daily.dev/og/posts/mPIcxyB2t.png
og:image:alt: bashumerate — A programmable iterator for your shell
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# bashumerate — A programmable iterator for your shell

**[Hacker News](https://daily.dev/sources/hn)** · 2 min read · 0 upvotes · 0 comments

## Summary

bashumerate is a small bash utility that provides a unified syntax for iterating over files, lines, ranges, and lists in the shell. Instead of juggling for loops, find -exec, and xargs with their different quirks, you use a single `enumerate` command with a `{}` placeholder. It supports four built-in source types, include/exclude glob filters, NUL-safe output, and an extensible plugin system where dropping a function into lib/enumerators/ adds a new source type. The core is ~140 lines of bash with no eval tricks.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://numerlab.org/2025/07/20/bashumerate-enumerator>

## Similar posts on daily.dev

- [Bash Via Transpiler](https://daily.dev/posts/bash-via-transpiler-vvo5zk17k) · Hackaday · 0 upvotes · 0 comments
- [The Batch Managing Batch File](https://daily.dev/posts/the-batch-managing-batch-file-hax1bu5lg) · The Daily WTF · 2 upvotes · 0 comments
- [Show HN: Executable Markdown files with Unix pipes](https://daily.dev/posts/show-hn-executable-markdown-files-with-unix-pipes-u9qcwjh0b) · Hacker News · 0 upvotes · 0 comments
- [From Python to Rust: Master Iterators by Rebuilding 10 Unix Tools](https://daily.dev/posts/from-python-to-rust-master-iterators-by-rebuilding-10-unix-tools-btnwdykgu) · Planet Python · 30 upvotes · 5 comments

---

Tags: [#cli](https://daily.dev/tags/cli), [#shell](https://daily.dev/tags/shell), [#bash](https://daily.dev/tags/bash)

[View this post on daily.dev](https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"bashumerate — A programmable iterator for your shell","url":"https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t"},"datePublished":"2026-07-20T23:04:32.541Z","dateModified":"2026-07-20T23:04:52.074Z","description":"bashumerate is a small bash utility that provides a unified syntax for iterating over files, lines, ranges, and lists in the shell. Instead of juggling for...","image":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","thumbnailUrl":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bashumerate-a-programmable-iterator-for-your-shell-mpicxyb2t","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cli,shell,bash","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"bashumerate — A programmable iterator for your shell"}]}
```

