

“The only requirement is that you share your progress and log your hours.” So participants are free to choose how they log their hours?
“The only requirement is that you share your progress and log your hours.” So participants are free to choose how they log their hours?
Perfect, thanks for the explanation. Indeed, I found the same solution via StackOverflow about simultaneously.
Ah that’s good to know about zsh.
Sorry regarding the second code block; it does indeed work as intended, and quite elegantly.
For the first code snippet to run correctly, $list
would need to be put in double quotes: echo "$list" | ...
, because otherwise echo
will conflate the various lines into a single line.
The for loop approach is indeed quite readable. To make it solve the original task (which here means that it should also assign a number just smaller than $threshold to $tail, if $threshold is not itself contained in $list), one will have to do something in the spirit of what @Ephera@lemmy.ml and I describe in these comments.
Thank you, in fact I ended up doing something that’s mathematically pretty much just that: I have the previous line stored in an auxiliary variable lastline
, and it is the evaluation of the current line $0
that determines whether the previous line gets printed.
awk -v threshold=150 'BEGIN {lastline=""}
(lastline!="" && threshold<$0){print lastline} #the additional check lastline!="" prevents an empty line at the very beginning
{lastline=$0}
END{print} #hardcode printing of the very last line, because otherwise it would never be printed
'
Of note, in the case where some list entries are repeated, the behavior of this script will be:
END{print}
statement, whereas all preceding instances get printed through the statement that depends on threshold<$0
.(IIRC, it was a StackOverflow post that led me to this.)
Thanks, that’s good to know, I’ll see how well I can adapt my workflow to this. (The reason for using Konsole tabs so far is the easy switching via Alt+[number], but I suppose using Helix’s integrated multi-document system should offer other advantages (e.g. regarding registers) that could outweigh this by far.)
New to this instance, but for me too it is comparatively sluggish since I started using it yesterday.
Or get a used thin client (e. g. HP T620, T630, T640 or Dell Wyse 5070). Cost: ~40-100$. Biggest advantage: Passive cooling, i. e. they’re absolutely quiet.
It isn’t a question of “How long are they supposed to support it for”; it’s a matter of “Don’t artificially break things”.
As to Linux distro EOLs, they’re are bad examples for several reasons: