News for hackers. Stuff that matters.
Re:Unix History and the `DC` Calculator by thanatos519 on Sunday September 01, 2024 @09:45PM (#41421896)
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!

Re:Unix History and the `DC` Calculator by alisonatwork on Sunday September 01, 2024 @11:58PM (#41422459)
I'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!
Re:Unix History and the `DC` Calculator by gavinhoward on Monday September 02, 2024 @12:24AM (#41422563)
I have a user on Windows? Gasp!

Glad you like it!

Re:Unix History and the `DC` Calculator by baudaux on Monday September 02, 2024 @01:39AM (#41422886)
Re:Unix History and the `DC` Calculator by 082349872349872 on Monday September 02, 2024 @02:04AM (#41422987)
Also, unlike bc, dc can be used to write binary files.

(and it sure beats a magnetised needle and a steady hand)

Re:Unix History and the `DC` Calculator by sevensor on Sunday September 01, 2024 @10:24PM (#41422119)
> 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.

Re:Unix History and the `DC` Calculator by Borg3 on Monday September 02, 2024 @03:40AM (#41423404)
Ahaha :) 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.