this post was submitted on 16 Aug 2025
55 points (92.3% liked)
Linux
10748 readers
406 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I wish that
stringcommand and also theirmathcommand were just general-purpose utilities pre-installed on all systems.Tried to script something with
sedthe other day and was so confused why my regexes weren't matching, until we realized you need to pass--regexp-extendedto get modern-day regex.And then I later tried to calculate an average, which
bcdecided to round down, because it was presumably doing integer math. I actually ended up runningpython -c "print($total / $count)", because I could not be arsed to work out, if there was some flag to makebcwork properly.I'm fine with these tools continuing to exist for legacy purposes, but I would like a modern replacement just about now.
string split/collectand similar can't work unless its a builtin. Theset foo ( ...... | string ... )pattern couldn't work ifstringwas an external binary.