Bash 5.0 released...


Login or Register to Reply

 
Thread Tools Search this Thread
# 3  
Hi dodona...

OT:
What can bc and dc do that awk can't?

Heck, Corona688 has recently done a DFT script in awk and I have also done one in pure ksh.
Can bc or dc do that?
As awk does any floating point that I require then this is what I use in bash.
(Plus a couple of years ago CygWin had neither bc nor dc but it has awk and bash as its default shell.)

Floating point is useful and ksh and zsh has had the facility for years, why not bash too?
# 4  
There's only so much you can change a Bourne shell before it stops being Bourne. BASH is (though this is occasionally disputed) compatible enough to remain a good vanilla /bin/sh at need, but system scripts might misbehave if /bin/sh linked ksh instead. Or might not. Depends if they use any features where Bourne and KSH radically differ.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Different behavior between bash shell and bash script for cmd
da1
So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s...... Shell Programming and Scripting
5
Shell Programming and Scripting
How to run several bash commands put in bash command line?
abdulbadii
How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:...... Shell Programming and Scripting
4
Shell Programming and Scripting
Bash to select text and apply it to a selected file in bash
cmccabe
In the bash below I am asking the user for a panel and reading that into bed. Then asking the user for a file and reading that into file1.Is the grep in bold the correct way to apply the selected panel to the file? I am getting a syntax error. Thank you :) ...... Shell Programming and Scripting
4
Shell Programming and Scripting
how to make your bash script run on a machine with csh and bash
npatwardhan
hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there...... Shell Programming and Scripting
3
Shell Programming and Scripting
passing variable from bash to perl from bash script
arsidh
Hi All, I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl FROM_DATE="06/05/2008" TO_DATE="07/05/2008" "perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename" filename has...... Shell Programming and Scripting
10
Shell Programming and Scripting