4 ms·
DC one liners always seem like the most arcane bit of magic (to the uninitiated like me). E.g. dc -e '_640320[0ksslk3^16lkd12+sk-lmlhd1+sh3^/smlxljsxll54514013
by bawolff 2y ago
DC one liners always seem like the most arcane bit of magic (to the uninitiated like me).
E.g. dc -e '_640320[0ksslk3^16lkd12+sk-lmlhd1+sh3^/smlxljsxll545140134+dsllmlxlnk/ls+dls!=P]sP3^sj7sn[6sk1ddshsxsm13591409dsllPx10005v426880*ls/K3-k1/pcln14+snlMx]dsMx'
- Diti 2y agoFor those who are on NixOS and can’t find `dc`, it’s present in BusyBox. nix run nixpkgs#busybox -- dc -e '_640320[0ksslk3^16lkd12+sk*-lm*lhd1+sh3^/smlxlj*sxll545140134+dsllm*lxlnk/ls+dls!=P]sP3^sj7sn[6sk1ddshsxsm13591409dsllPx10005v426880*ls/K3-k1/pcln14+snlMx]dsMx'
- kragen 2y agowell, they are. it's like reading keyboard macros. btw i think you meant to \ your *s
- bawolff 2y agoOh, you are correct. Hn ate the formatting. The example is stolen from wikipedia. Lets try that again: dc -e '_640320[0ksslk3^16lkd12+sk*-lm*lhd1+sh3^/smlxlj*sxll545140134+dsllm*lxlnk/ls+dls!=P]sP3^sj7sn[6sk1ddshsxsm13591409dsllPx10005v426880*ls/K3-k1/pcln14+snlMx]dsMx'
- jmclnx 2y agoCool, will save this. People should run this if they do not know what it does.