moreutils VS ripgrep

Compare moreutils vs ripgrep and see what are their differences.

moreutils

moreutils is a growing collection of the unix tools that nobody thought to write long ago when unix was young. Read-only version of `git://git.joeyh.name/moreutils` (by pgdr)

ripgrep

ripgrep recursively searches directories for a regex pattern while respecting your gitignore (by BurntSushi)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
moreutils ripgrep
19 348
2 45,040
- -
0.0 9.3
over 1 year ago 12 days ago
Shell Rust
GNU General Public License v3.0 only The Unlicense
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

moreutils

Posts with mentions or reviews of moreutils. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-09.
  • Pipexec – Handling pipe of commands like a single command
    6 projects | news.ycombinator.com | 9 Mar 2024
    I use mutlios and even I'm not that attached to it. The majority of my use is combined with process substitution, and could be replaced with common-ish tools like pee¹ or pipexec for more complex cases. The only occasion when I'm thankful for it is if I want to use a shell function as a target, but there are workarounds for that too.

    As a noclobber user the footgun is largely hidden to me, but I feel its presence. multios without globbing support would be less useful, but would still work for most of my use cases. Scanning my shell history I see various cases of relying on zsh's ability to apply sorting and filtering to globs with multios' input redirection, but only a couple where I want that in output redirection.

    Even with multios unset the behaviour is different between zsh and bash. For example, multios disables all the expansion, so zsh behaves like more like dash with ': >t{1,2}' by creating a file instead producing an error like bash does.

    [FWIW, I google'd multiios to link the option in original comment. It really feels to me like it needs double-i, and I read the single i name the same way you do.]

    ---

    I'd be one of those people whose desire for dgsh-like functionality wanes. If it was slight DSL that I could "upgrade" pipelines to I'd probably use it, but not enough to warrant working on it or switching other tooling to support it.

    The end of result of this morning's pipeline was breaking my jobs up, and applying some judicious use of nq² to keep track of it. I'd follow your advice and move on to more specialist tools if the job grew significantly or if it became a regular occurrence.

    ¹ https://joeyh.name/code/moreutils/

    ² https://git.vuxu.org/nq/about/

  • Show HN: Simple Script for Enhanced LLM Interaction in Vim
    3 projects | news.ycombinator.com | 16 Dec 2023
  • The shell and its crappy handling of whitespace
    3 projects | news.ycombinator.com | 30 Jul 2023
    For filesystem operations like batch renames at least, I am usually happy with `vidir` (part of `moreutils`: https://joeyh.name/code/moreutils/).

    `vidir [path]` will open an editor with the given directory as buffer contents.

  • Show HN: LineSelect, shell utility to interactively select lines in a pipeline
    5 projects | news.ycombinator.com | 5 Jul 2023
    See also: "vipe" from the excellent "moreutils" package: https://joeyh.name/code/moreutils/

    There are some other gems in this package. The ones I find myself using regularly are 'ts' and 'sponge' but I'm sure the useful subset depends a lot on the kind of work you are doing

  • Vim Keybindings Everywhere – The Ultimate List
    11 projects | news.ycombinator.com | 4 May 2023
    Joey Hess' excellent moreutils¹ comes with vipe which is a generalised solution for these types of tasks. It allows you to run whatever $EDITOR you've configured mid-pipe, making it possible to work your changes up in an interactive editor session. Useful for those of us not smart enough to write up our changes as a series of -c arguments ;)

    (It fixes the vim issue by virtue of using a temporary file to do the magic)

    ¹ https://joeyh.name/code/moreutils/

  • vimv has not only changed my workflow, it changed my life
    4 projects | /r/linux | 15 Mar 2023
    Sounds like `vidir` from moreutils.
  • What "nice-to-have" CLI tools do you know?
    33 projects | /r/linuxquestions | 14 Feb 2023
    vidir and a few others from moreutils
  • rtl_fm - record and also output audio on a speaker (Raspberry pi?)
    1 project | /r/RTLSDR | 24 Dec 2022
    Use pee (yes, I know) from moreutils. Something like:
  • How to re-order the strings of a filename in bulk?
    1 project | /r/zsh | 6 Nov 2022
    I would use vidir from moreutils. Then you can do any edits and play around with any regexes you want!
  • Should i learn file management using terminal?
    1 project | /r/linuxmasterrace | 21 Aug 2022
    For bulk file renaming, I recommend vidir from moreutils - it lets you rename everything in a directory with your $EDITOR (vim being the default).

ripgrep

Posts with mentions or reviews of ripgrep. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-17.
  • Ask HN: What software sparks joy when using?
    10 projects | news.ycombinator.com | 17 Apr 2024
    ripgrep - https://github.com/BurntSushi/ripgrep
  • Code Search Is Hard
    13 projects | news.ycombinator.com | 10 Apr 2024
    Basic code searching skills seems like something new developers are never explicitly taught, but which is an absolutely crucial skill to build early on.

    I guess the knowledge progression I would recommend would look something kind this:

    - Learning about Ctrl+F, which works basically everywhere.

    - Transitioning to ripgrep https://github.com/BurntSushi/ripgrep - I wouldn't even call this optional, it's truly an incredible and very discoverable tool. Requires keeping a terminal open, but that's a good thing for a newbie!

    - Optional, but highly recommended: Learning one of the powerhouse command line editors. Teenage me recommended Emacs; current me recommends vanilla vim, purely because some flavor of it is installed almost everywhere. This is so that you can grep around and edit in the same window.

    - In the same vein, moving back from ripgrep and learning about good old fashioned grep, with a few flags rg uses by default: `grep -r` for recursive search, `grep -ri` for case insensitive recursive search, and `grep -ril` for case insensitive recursive "just show me which files this string is found in" search. Some others too, season to taste.

    - Finally hitting the wall with what ripgrep can do for you and switching to an actual indexed, dedicated code search tool.

  • Level Up Your Dev Workflow: Conquer Web Development with a Blazing Fast Neovim Setup (Part 1)
    12 projects | dev.to | 16 Mar 2024
    live grep: ripgrep
  • Ripgrep
    1 project | news.ycombinator.com | 25 Feb 2024
  • Modern Java/JVM Build Practices
    9 projects | news.ycombinator.com | 4 Jan 2024
    The world has moved on though to opinionated tools, and Rust isn't even the furthest in that direction (That would be Go). The equivalent of those two lines in Cargo.toml would be this example of a basic configuration from the jacoco-maven-plugin: https://www.jacoco.org/jacoco/trunk/doc/examples/build/pom.x... - That's 40 lines in the section to do the "defaults".

    Yes, you could add a load of config for files to include/exclude from coverage and so on, but the idea that that's a norm is way more common in Java projects than other languages. Like here's some example Cargo.toml files from complicated Rust projects:

    Servo: https://github.com/servo/servo/blob/main/Cargo.toml

    rust-gdext: https://github.com/godot-rust/gdext/blob/master/godot-core/C...

    ripgrep: https://github.com/BurntSushi/ripgrep/blob/master/Cargo.toml

    socketio: https://github.com/1c3t3a/rust-socketio/blob/main/socketio/C...

  • Ugrep – a more powerful, ultra fast, user-friendly, compatible grep
    27 projects | news.ycombinator.com | 30 Dec 2023
    I'm not clear on why you're seeing the results you are. It could be because your haystack is so small that you're mostly just measuring noise. ripgrep 14 did introduce some optimizations in workloads like this by reducing match overhead, but I don't think it's anything huge in this case. (And I just tried ripgrep 13 on the same commands above and the timings are similar if a tiny bit slower.)

    [1]: https://github.com/radare/ired

    [2]: https://github.com/BurntSushi/ripgrep/discussions/2597

  • Tell HN: My Favorite Tools
    14 projects | news.ycombinator.com | 24 Dec 2023
  • Potencializando Sua Experiência no Linux: Conheça as Ferramentas em Rust para um Desenvolvimento Eficiente
    5 projects | dev.to | 12 Dec 2023
    Explore o Ripgrep no repositório oficial: https://github.com/BurntSushi/ripgrep
  • Scrybble is the ReMarkable highlights to Obsidian exporter I have been looking for
    9 projects | /r/RemarkableTablet | 7 Dec 2023
    🔎🗃️ ripgrep or ugrep (search fast, use regex patterns or fuzzy search, pipe output to bash/zsh shell for further processing V coloring)
  • RFC: Add ngram indexing support to ripgrep (2020)
    2 projects | news.ycombinator.com | 30 Nov 2023

What are some alternatives?

When comparing moreutils and ripgrep you can also consider the following projects:

pipe-rename - Rename your files using your favorite text editor

telescope-live-grep-args.nvim - Live grep with args

atomicxt

fd - A simple, fast and user-friendly alternative to 'find'

map.xplr - Visually inspect and interactively execute batch commands using xplr

ugrep - ugrep 5.1: A more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz, Z, bz2, lzma, xz, lz4, zstd, brotli), pdfs, docs, and more

lineselect - Shell utility to interactively select lines from stdin

the_silver_searcher - A code-searching tool similar to ack, but faster.

fstring - Make searching for text strings easier on Linux :)

fzf - :cherry_blossom: A command-line fuzzy finder

vidir - edit directory in $EDITOR (better than vim . with netrw)

alacritty - A cross-platform, OpenGL terminal emulator.