Fork me on GitHub
#off-topic
<
2020-11-03
>
nate18:11:49

I may have a problem:

$ tmux list-windows -a -F '#{window_panes}' | bb -I '(apply + *input*)'
93

😲 6
noisesmith22:11:45

so babashka calls read on each line of input to make *input* ?

nate22:11:58

yes, when -I is used

andy.fingerhut22:11:19

A problem with babashka, or a problem with too many tmux windows to keep track of? 🙂

nate22:11:34

Related to that, I searched around for ways to sum up numbers, and the other options range from mildly opaque to downright cryptic.

nate22:11:08

The babashka version is definitely the most straightforward, especially to a clojurian

noisesmith22:11:45

things like awk '{total += $1}END{ print total}'

nate00:11:13

yeah, or dc -f - -e '[+z1<r]srz1<rp'

rwstauner21:11:29

+:achievementunlocked: