{"id":35404907,"url":"https://github.com/ihatemustard/no","last_synced_at":"2026-01-13T19:42:29.923Z","repository":{"id":331221945,"uuid":"1125772814","full_name":"ihatemustard/no","owner":"ihatemustard","description":"no is the opposite of yes.","archived":false,"fork":false,"pushed_at":"2026-01-02T19:36:37.000Z","size":242,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-04T15:28:33.107Z","etag":null,"topics":["automation-tool","cli","cli-tool","freebsd","freebsd-tool","fun-cli","jot","linux-tool","random-generator","seq","sh","shell-script","shell-tool","shuf","shuffle","yes-alternative"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ihatemustard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":"https://mc-host24.de/donate/ihatemustard"}},"created_at":"2025-12-31T10:31:16.000Z","updated_at":"2026-01-02T19:36:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ihatemustard/no","commit_stats":null,"previous_names":["ihatemustard/no"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ihatemustard/no","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihatemustard%2Fno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihatemustard%2Fno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihatemustard%2Fno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihatemustard%2Fno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ihatemustard","download_url":"https://codeload.github.com/ihatemustard/no/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihatemustard%2Fno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28397826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation-tool","cli","cli-tool","freebsd","freebsd-tool","fun-cli","jot","linux-tool","random-generator","seq","sh","shell-script","shell-tool","shuf","shuffle","yes-alternative"],"created_at":"2026-01-02T12:36:50.826Z","updated_at":"2026-01-13T19:42:29.917Z","avatar_url":"https://github.com/ihatemustard.png","language":"Shell","funding_links":["https://mc-host24.de/donate/ihatemustard"],"categories":[],"sub_categories":[],"readme":"\u003csub\u003eIf you found this project helpful or enjoyed using it, please consider giving it a star!\u003c/sub\u003e\n\n# no\n\n`no` is the opposite of `yes`.\n\nIt behaves similarly to the Unix `yes` command, but:\n\n## Default Behavior\n\n* Defaults to printing `n` infinitely if no arguments are provided.\n\n## Control Flags\n\n* `--times, -t`: Limits repetitions (e.g., `-t 5` prints 5 times).\n* `--interval, -i`: Adds a fixed delay (in seconds) between each output.\n* `--jitter, -j`: Adds a random delay (0 to N seconds) on top of the interval.\n* `--output, -o`: Writes the output to one or multiple specified files, streams, or devices.\n* `--command, -cmd`: Repeatedly executes a shell command and captures its output for each iteration.\n* `--random, -r`: Picks a random string from a comma-separated list or template for each iteration.\n* `--skip`: Ignores the first N items of a sequence, repetition, or template.\n* `--version, -v`: Displays metadata or internal state information.\n* `--help, -h`: Displays the help manual and usage instructions.\n* `--unique`: Ensures every output of no is unique.\n\n## Sequences \u0026 Math\n\n* `--seq`: Generates numeric (e.g., `1:10`) or character (e.g., `a:z`) sequences.\n* `--step`: Sets the increment/decrement value (supports decimals like `0.5`).\n* `--cycle`: Repeats sequences infinitely (requires a limit via `-t`).\n* `--pad`: Zero-pads numeric output to a specific length (e.g., `--pad 3` becomes `001`).\n* `--precision`: Sets fixed decimal places for floating-point numeric output.\n* `--calc`: Performs arithmetic operations on numeric output (e.g., `'+5'`, `'*2'`).\n\n## Formatting \u0026 Visuals\n\n* `--format, -f`: Applies a custom printf-style string (e.g., `-f \"ID-%s\"`).\n* `--case`: Transforms text case using `upper`, `lower`, or `swap`.\n* `--color / --style`: Wraps output in ANSI color codes; supports named colors, hex codes, or style combinations (`bold`, `underline`, `italic`).\n* `--header`: Prints a single designated line once before the main process begins.\n* `--prefix`: Adds a specific string before every output item.\n* `--suffix`: Adds a specific string after every output item.\n* `--width`: Right-aligns the output to a fixed character width.\n* `--trim`: Removes leading/trailing whitespace from output items.\n\n## Layout \u0026 Parsing\n\n* `-cols`: Arranges the output into N columns using tabbed spacing.\n* `--separator, -s`: Defines custom delimiters between items (defaults to `\\n`).\n* `--count, -c`: Prepends an incrementing line counter (e.g., `1: text`).\n* `--template`: Uses content from a file or string as the source text.\n* `--filter`: Outputs only items matching a specified regular expression.\n* `--`: Stops parsing flags; everything following is treated as literal text.\n* `--verify`: Runs an internal suite of self-tests to ensure all logic functions correctly.\n\nFor practical examples and ways to use `no`, see the [Use Cases](usecases.md) page.\n\n---\n\n## Usage\n\n```sh\n$ no\nn\nn\nn\n...\n\n$ no i hate mustard\ni hate mustard\ni hate mustard\n...\n\n# You can pass (multiple) arguments\n$ no --example string --example2 string2 \"output\"\n```\n\n## Comparison of `no`\n\nThe table below compares the `no` script with other common Unix utilities that generate repeated or sequential output.  \n\n| Feature                         | no | yes | jot | seq | shuf |\n| ------------------------------- | -------- | --- | --- | --- | ---- |\n| Infinite repetition             | ✅        | ✅   | ❌   | ❌   | ❌    |\n| Repetition count                | ✅        | ❌   | ✅   | ✅   | ✅    |\n| Custom string output            | ✅        | ✅   | ❌   | ✅   | ✅    |\n| Numeric sequence generation     | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Character sequence generation   | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Step/increment support          | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Zero-padding                    | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Decimal precision formatting    | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Random selection from list      | ✅        | ❌   | ❌   | ❌   | ✅    |\n| Execute command repeatedly      | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Interval/delay between outputs  | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Columns/custom separator        | ✅        | ❌   | ✅   | ❌   | ❌    |\n| Supports negative step          | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Alphabetical ranges(a..z)       | ✅        | ❌   | ✅   | ✅   | ❌    |\n| Can repeat random items N times | ✅        | ❌   | ❌   | ❌   | ✅    |\n| Random Jitter Delay             | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Case(Upper/Lower/Swap)          | ✅        | ❌   | ❌   | ❌   | ❌    |\n| ANSI Color Support              | ✅        | ❌   | ❌   | ❌   | ❌    |\n| CSV/File Header Support         | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Sequence Cycling                | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Skip N Items                    | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Standard--flag=val Parsing      | ✅        | ❌   | ❌   | ❌   | ❌    |\n| Lightweight                     | ✅        | ✅   | ✅   | ✅   | ✅    |\n\n---\n\n## Install \u0026 Uninstall (FreeBSD)\n\n**Step 1**: Download the install script using `fetch`\n\n```sh\nfetch -o install.sh https://raw.githubusercontent.com/ihatemustard/no/refs/heads/main/install.sh\n```\n\n**Step 2**: Make the script executable\n\n```sh\nchmod +x install.sh\n```\n\n**Step 3**: Run the script as root (using `doas` or `sudo`)\n\n```sh\n./install.sh\n```\n\n* Installs the command to `/usr/local/bin/no`\n\nTo remove `no`, run the same script **(also as root)**.\n\n---\n\n## Manual Installation \u0026 Removal (Linux + others)\n\n**Step 1**: Download the [`no`](https://github.com/ihatemustard/no/blob/main/no.sh) script\n\n**Step 2**: Make it executable\n\n```sh\nchmod +x no.sh\n```\n\n**Step 3**: Move it to a directory in your PATH (requires root)\n\n```sh\nsudo mv no.sh /usr/local/bin/no\n```\n\n**Step 4**: Test it\n\n```sh\nno -h\n```\n\nTo remove `no`, run:\n\n```sh\nsudo rm /usr/local/bin/no\n```\n\n**Install no minimal (Not recommended)**\n\n**Step 1**: Download the [`no minimal`](https://github.com/ihatemustard/no/blob/84fadfe65e85aa04b81723047dde77a4455eb5a9/no.sh) script\n\n**Step 2**: Complete all the steps listed above.\n\n---\n\n## Dependencies\n\n* `sh` (POSIX-compliant shell, usually `/bin/sh`)\n* `awk`, `printf`, `od` (for random logic)\n\n## To-Do\n- [X] Add Features from jot(1)\n- [X] TUI Installer\n- [X] Include help instead of using `man`\n- [X] Install through Wi-Fi and not locally in Installer\n- [X] Add Version Flag\n- [X] Add Count Flag\n- [X] Fix `--command` and `--seperator` flags\n- [X] Make parsing better\n- [X] Add `--filter` (filter or modify output)\n- [X] Support multiple targets with `--output`\n- [X] Add simple arithmetic operations\n- [X] Add improved ANSI Styling (Bold, underline, hex)\n- [X] Multi-line templates / `--template` support\n- [X] Update [Use Cases](usecases.md) page to latest\n- [X] Add flag `--unique`: Ensures every output of no is unique.\n- [X] Add flag `--trim`: Removes leading/trailing whitespace from output items.\n\n[![FreeBSD Banner](https://www.freebsd.org/gifs/fhp_mini.jpg)](https://www.freebsd.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihatemustard%2Fno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihatemustard%2Fno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihatemustard%2Fno/lists"}