4 ms·
Hello fellow dc user! I use it as my default calculator and even in shell scripts I'm all "sum=$(echo $a $b + p | dc)" (though it is usually a much more comple
by thanatos519 2y ago
Hello fellow dc user! I use it as my default calculator and even in shell scripts I'm all "sum=$(echo $a $b + p | dc)" (though it is usually a much more complex expression of course)
I still have my HP48SX RPN calculator too!
- sevensor 2y ago> Hello fellow dc user! What are the chances all four of us would find the same thread? It’s so fast, so reliable, so omnipresent. Between that and being able to turn multiplication into addition by working in powers of two, I get answers while my colleagues are still waiting for excel to start.
- Borg3 2y agoAhaha :) Nice on. Its kinda similar to my net docs system written in ruby. I just type blgrep ip=192.168.0.10,15 hosts.txt and get answer, before people start any IPAM :) CLI power... Unfortunately, it does not get right respect these days.
- alisonatwork 2y agoI'm not sure why I started using dc instead of bc, but I think it might have been because at one point in time bc output a bunch of extra noise that made it annoying to use in shell scripts, so I just learned dc is the standard way to calculate stuff in UNIX and kept on using it that way. I noticed some new Linuxes don't have it installed and I'm always stuck for how to calculate things in shell scripts. I guess people just use Bash nowadays. In any case, thanks to the Gavin Howard dc I still use it today, even on the Windows command line. dc is great!
- gavinhoward 2y agoI have a user on Windows? Gasp! Glad you like it!
- baudaux 2y agoGNU bc online: https://exaequos.com/?a=/usr/bin/bc https://exaequos.com/?a=/usr/bin/bc
- 082349872349872 2y agoAlso, unlike bc, dc can be used to write binary files. (and it sure beats a magnetised needle and a steady hand)