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 #coreutils / #moreutils 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 #nuShell

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

#shell #bash #cli

Num-utils - SusoSight

Many years ago I wrote the command line tool errno, and today I spent several minutes looking for it. I'd forgotten it's in #moreutils by @joeyh now.

Still useful from time to time.

"errno 2" → "ENOENT 2 No such file or directory+

"errno EMFILE" → "EMFILE 24 Too many open files"

@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.

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

Moreutils - A Collection Of More Useful Unix Utilities - OSTechNix

Moreutilis is a growing collection of more usefullUnix utilities. The moreutils can be installed on GNU/Linux, FreeBSD, openBSD and Mac OS.

OSTechNix
Moreutils - A Collection Of More Useful Unix Utilities - OSTechNix

Moreutilis is a growing collection of more usefullUnix utilities. The moreutils can be installed on GNU/Linux, FreeBSD, openBSD and Mac OS.

OSTechNix
Moreutils - A Collection Of More Useful Unix Utilities - OSTechNix

Moreutilis is a growing collection of more usefullUnix utilities. The moreutils can be installed on GNU/Linux, FreeBSD, openBSD and Mac OS.

OSTechNix

#moreutils 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 🔗️: https://joeyh.name/code/moreutils/

apt 📦️: moreutils

#free #opensource #foss #fossmendations #sysadmin

moreutils

@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: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961638

#961638 - proposal: stocat - probabilistic cat - Debian Bug report logs

Moreutils - A Collection Of More Useful Unix Utilities - OSTechNix

Moreutilis is a growing collection of more usefullUnix utilities. The moreutils can be installed on GNU/Linux, FreeBSD, openBSD and Mac OS.

OSTechNix