On 5/25/20 5:40 PM, None via users wrote:
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, May 25, 2020 7:58 PM, Samuel Sieb <samuel@xxxxxxxx> wrote:On 5/25/20 12:08 PM, None via users wrote:Thank you. I see what you mean. I have checked and see here http://mathforum.org/library/drmath/view/60969.html Still I wonder if I can get awk/bash/bc/dc it would be nice.Why do you want to use a complicated solution instead of the simple tool? I could easily make a bash script to do it, but what's the point?Portability. Ability to run on live systems, cell phones with termux and datamash and R are not installed, or there is not enough space to install them :)
Ok, here you go, using only bash and bc. It calculates it both ways, first the mathematical way that R and datamash do and then the splitting values method.
Attachment:
5sum.sh
Description: application/shellscript
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx