Not sure whether there are existing similar questions already. Sometimes we need to execute "top" for once and redirect its out to a file, such as: t ...
Not sure whether there are existing similar questions already. Sometimes we need to execute "top" for once and redirect its out to a file, such as: t ...
I'm trying to perform multiple mathematical operations with big hexadecimal numbers. In the following code a big random value is given to p and q, bot ...
I'm trying to generate a 2048 bit long prime number, this is my code so far: While running the script I get (standard_in) 1: syntax error followed ...
It is possible to print to several hundred decimal places a square root in bc, as it is in C. However in C it is only accurate to 15. I have checked t ...
Define the function in basic calculator bc as I'd have thought the value of test would be limited to the scope of the function f, but no, test equa ...
This outputs 101110 echo "obase=2; 46" | bc How can I make it output 8 digits, like this? : 00101110 I learned the above usage of bc here: Bash sh ...
I have a file file.txt, I want to get the unique package names with the highest version mentioned in the file. I tried awk as below but the result ...
While working with bc, UNIX basic calculator on my Ubuntu WSL, I found this bizarre behaviour: At first, I thought this meant that bc does not cove ...
Let’s imagine we have a budget document: budget.txt The exercise is to calculate the sum column for every product in the month, also to calculate tot ...
I pipe different values to bc. If the value is a number, it works fine. If it's a string with lowercase letters, it returns 0 which makes sense to me ...
I have this input file: And with a answer I've got here, I was able to sum the numbers, but now the numbers are float and I don't know how to print ...
What I am trying to do is copy a Business Central environment. Done it before without issue but this time it does not allow me to login. Here's the s ...
I have a discord bot that executes where INPUT is a string limited to 2000 characters. this file later gets deleted. Is this safe if INPUT is whate ...
I'm learning AL programming in BC and I'm experimenting with the HttpClient class to make http requests. I try to make a request to the jsonplaceholde ...
I have to pipe integers comparisons (and more complex arithmetic and boolean operations) to bc, and I have to keep track of syntax errors when some da ...
I am trying ti install bc on my cluster. I used followed by but getting below error while executing make Is there any workaround for it? ...
My bash script is the following However, I get the error message (standard_in) 1: syntax error. Do you have any idea to address this issue? Thank ...
I'm writing a program for CodeWars that requires me to return 2 specific variables with a space between them. The following is the script that I am t ...
I noticed a solution on Codewars which had the following syntax: My question is regarding the variables used(m,x,counter). How is it that bash allo ...
I want to use the New-NAVServerUser Command (see: https://docs.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.management/new-navserverus ...