home.social

#moreutils — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #moreutils, aggregated by home.social.

  1. Let's all take a moment to appreciate how ridiculously complicated it is to just sum up numbers coming into STDIN on the shell.

    How does / not have something for this? (or does it? 🤔)

    Happy to hear suggestions for a multitool for math in the shell.

    UPDATE: see num-utils¹, and probably

    ¹suso.suso.org/xulu/Num-utils

  2. @ervan Without changing your actual #RSpec or #CI setup, you can create multiple #Rake tasks to run specific tags or spec files. Then use #gnuparallel (or `parallel` from #moreutils) to run the tasks on multiple CPUs or cores. For GNU, see the `-j`, `--use-cores-instead-of-threads`, and `--use-sockets-instead-of-threads` flags.

    You can also use subshells or background tasks for OS allocation in #bash, #zsh, or #fish. Also, consider threading without a GIL on #TruffleRuby.

  3. @ervan Without changing your actual #RSpec or #CI setup, you can create multiple #Rake tasks to run specific tags or spec files. Then use #gnuparallel (or `parallel` from #moreutils) to run the tasks on multiple CPUs or cores. For GNU, see the `-j`, `--use-cores-instead-of-threads`, and `--use-sockets-instead-of-threads` flags.

    You can also use subshells or background tasks for OS allocation in #bash, #zsh, or #fish. Also, consider threading without a GIL on #TruffleRuby.

  4. Weekly reminder that if you have both manpages and moreutils installed,
    "man pee"
    is an actually valid, useful command in #Linux . For that matter pee is quite useful as well, for stuff such as hashing or de/encoding files.

    #CommandLine #Moreutils

  5. is a collection of useful utilities.

    moreutils is a set of tools in the same vein of coreutils, providing functionality that is difficult to achieve using pure shell. moreutils includes tools to combine files line by line conditionally, executing a command if stdin has content, teeing to pipes, timestamping standard input, collecting up stdin then writing to a file, and more.

    Website 🔗️: joeyh.name/code/moreutils/

    apt 📦️: moreutils

  6. @mike nope, shuf outputs all lines in a randomized order, which is now what the spec required here.

    BTW, since that message I've implemented #stocat to address this and submitted it for inclusion into #moreutils: bugs.debian.org/cgi-bin/bugrep

  7. I've created a #shell based reimplementation of #vipe (from #moreutils).

    Long story short, this utility allows you to use your editor in a pipeline (e.g., fetch -o - man.freebsd.org/beinstall.sh | vipe.sh | nc termbin.com 9999).

    Let me know if there is something you would improve.

    github.com/0mp/vipe.sh

    #FreeBSD #BSD #sh #POSIX