nowfound

Alternatives

Products that do what awk commands for `union`, `intersect`, `except`, `extra` does

I'm munging text and I wrote these awk commands that may be useful to other coders. Feedback welcome. union (https://github.com/sixarm/union): print lines in (A union B) intersect (https://github.com/sixarm/intersect): print lines in (A intersect B) except (https://github.com/sixarm/except): print lines in (A except B) a.k.a. (A - B) extra (https://github.com/sixarm/extra) : print lines in (A extra B) a.k.a. (B - A) Examples: $ cat 1.txt alpha bravo $ cat 2.txt alpha charlie $ union 1.txt 2.txt alpha bravo…

  1. 1AE

    Hi, I recently published my ebook on GNU awk one-liners [1]. It starts from the basics of awk syntax and then discusses one-liner examples. There's a chapter on regular expressions as well. The github repo has the details on how to get the PDF version, all the example files and code snippets used in the book, sample chapters as well the markdown source used to generate the PDF. I made all my ebooks [2] free last month amidst the pandemic fears. These include GNU grep & ripgrep, GNU sed and three books on regular expressions (Python, Ruby, JavaScript). I'd appreciate your feedback and hope…

    2020

  2. 2TW

    Announcing `tuc`, a utility similar to coreutils `cut`, but more powerful. It allows to split text or bytes into parts and reassemble them in any order. I always found `cut` very practical for some tasks where `sed` or `awk` were overkill or awkward to use, but I also felt the need for more features. Some key differences from `cut`: - parts can be referenced by negative indexes - delimiters can be any number of characters long, or match a regex - can split text into lines, and reassemble them

    2022 · github.com

  3. 3AI
  4. 4AJ

    2020 · github.com

  5. 5IE

    Last month, I started learning a Python TUI framework called Textual. After working on a 4x4 board game, I made an interactive app to test your CLI text processing skills with 40 beginner to intermediate level exercises. The app is fairly basic in terms of features — only single input file, so no stdin data, multiple files, etc. Most of the exercises in this app is based on my Computing from the Command Line ebook (https://learnbyexample.github.io/cli-computing/preface.html). I hope to improve the TUI app to support all the 200+ exercises sometime next year.

    2022 · github.com

  6. 6JA

    Typed, functional (folds, scans) stream processing backed by Andrew Gallant/burntsushi's regular expressions library. There's a guide here! https://vmchale.github.io/jacinda/

    2024 · hackage.haskell.org

  7. 7LS

    Allows you to "pause" a shell pipeline to interactively select a subset of lines to proceed with. I've always wanted a tool like this, as it effectively combines the best of shell pipes (easy to automate) and visual file managers (easy to make selections). Now that I have it I can't believe a tool like this is not already part of the standard set of shell utilities. There are so many situations where it is useful. Tested on Linux but should also work on MacOS. Also: please help me come up with a better name!

    2023 · github.com

  8. 8

    Clean messy data in minutes and without coding

    2020

  9. 9AS
  10. 10SI

    Rob Pike wrote a paper, Structural Regular Expressions (https://doc.cat-v.org/bell_labs/structural_regexps/se.pdf), that criticized the Unix toolset for being excessively line oriented. Tools like awk and grep assume a regular record structure usually denoted by newlines. Unix pipes just stream the file from one command to another, and imposing the newline structure limits the power of the Unix shell. In the paper, Mr. Pike proposed an awk of the future that used structural regular expressions to parse input instead of line by line processing. As far as I know, it…

    Nov 2025

  11. 11MA

    Hey HN I've been using ECS for a while now and found it annoying having to log into the console everytime I use Lens for Kubernetes but couldnt find an equivalent for ECS so i built one! The project is open source as well https://github.com/utibeabasi6/mercek

    Jun 2026 · mercek.dev

  12. 12FC
  13. 13LA
  14. 14CT
  15. 15PC

    I'm doing some fun chess-related programing during my sabbatical, and taking the opportunity to dive down rabbit holes I'd avoid for in a work setting. Found out interesting stuff from old ANSI DEC escape sequences to sixel graphics that are useful today.

    2024 · github.com

  16. 16JR

    Hello. I updated my ebook on JavaScript regular expressions [1] today - updates include corrections, additional content, exercises, solutions, etc All my ebooks [2] are currently free to help with quarantine reading. These include GNU grep & ripgrep, GNU sed, GNU awk and three books on regular expressions - Python, Ruby, JavaScript I'd appreciate your feedback and hope the books are useful. Happy learning :) [1] https://github.com/learnbyexample/learn_js_regexp [2] https://learnbyexample.github.io/books/

    2020

  17. 17AP

    2022 · benhoyt.com

  18. 18PC
  19. 19OT

    i always loved looking up the On-Line Encyclopedia of Integer Sequences (OEIS) when researching a sequence of numbers. so I decided to make a TUI and CLI for it so that I can browse sequences in the terminal. it supports almost all the features on the site (including the OEIS Webcam) and supports graphs, a preview pane, exporting and bookmarks. more features here: https://github.com/hako/oeis-tui?tab=readme-ov-file#features repo: https://github.com/hako/oeis-tui gitHub releases: https://github.com/hako/oeis-tui/releases cargo:…

    Nov 2025 · github.com

  20. 20NL

    Hey folks, I just wanted to share a quick script I threw together called notational ls. One of the big problems of any code base (or any filesystem) is that it's hard to tell what's what - folder and file names often trade brevity for clarity. So I thought about a version of `ls` that works like this: > nls web: Where python web server files are stored ad_hoc: One time scripts ios: Our IOS code images Adding descriptions is really easy too: > nls images Images SHARED between both ios and web web: Where python web server files are stored ad_hoc: One time scripts ios: Our IOS code…

    2011

  21. 21MT
  22. 22EG

    2022 · kylheku.com

  23. 23RL

    I had a work objective that required me to be able to "slice" a subnet by a smaller subnet and I didn't manage to find any other libraries that accomplish this kind of computation so I set out to write one myself. Supports calculating CIDR unions, differences, and complements. The rest of the existing set operations don't really make sense for CIDRs since the only way they can overlap is if one fully contains the other (or they are equivalent). I figured a binary tree-like data structure would be the most memory efficient way to represent this, but I'm super open to any feedback especially…

    2023 · github.com

  24. 24CC

Ranked by how close each launch is in meaning, then by votes. Refine with a description →