In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to. The post will cover for beginner to advanced level. Welcome to Linux terminal.
Follow us and start learning Linux today
bc
bc is a command line arithmetic calculator. It is a an arbitrary calculator language which means that it is an interactive calculator programming language. We can use expressions,variable,print,decision make statement etc
a=13 print a a<1 0 a>12 1
A comparison with >,< return 0 if it fails or 1 if it it true, I think that make sense.
We can also use the bc with output statement as follows
echo '100*9'|bc
You may love to learn following Linux commands and tutorials