We are building EduLadder(ELADR) - Protocol

The Eladr Protocol is a decentralized, security and efficiency enhanced Web3 noSQL database powered by IPFS as the data storage layer https://ipfs.io/, and the Cardano block chain as the rewards token platform, https://cardano.org/. It provides a JSON based, IPFS layer 2 solution for data indexing and retrieval in an 'append only' file system built with open source Node.js API libraries.

The ELADR token was designed to incentivize and reward community members as a proof of contribution. Token holders are also granted access to EduLadder.com premium features as well as associated ELADR token enabled apps.

WHITE PAPER Buy Now Try BETA

Real Problems! Real Experts!

Join Our Telegram Channel !


The Eduladder is a community of students, teachers, and programmers. We help you to solve your academic and programming questions fast.
In eduladder you can Ask,Answer,Listen,Earn and Download Questions and Question papers.
Watch related videos of your favorite subject.
Connect with students from different parts of the world.
Apply or Post Jobs, Courses ,Internships and Volunteering opportunity. For FREE
See Our team
Wondering how we keep quality?
Got unsolved questions? Ask Questions

Shell-Script-interview-questions-intermediate-->View question


Asked On2019-06-18 16:08:10 by:gokilapriya

Taged users:


Likes:
Be first to like this question

Dislikes:
Be first to dislike this question
Talk about this  Like  Dislike
View all questions
Answers
The basic calculator can be used in a terminal by simply entering bc, after which you can type regular math expressions like this:
4+3
...to get a result like this:
7
When performing a series of calculations repeatedly, it makes sense to use the bc calculator as part of a script. The simplest form of such a script would look something like this:
#!/bin/bash
echo '6.5 / 2.7' | bc
The first line is just the path the executable that runs this script.
The second line contains two commands. The echo command generates a string containing the mathematical expression contained in single quotes (6.5 divided by 2.7, in this example). The pipe operator (|) passes this string as an argument to the bc program. The output of the bc program is then displayed on the command line.
In order to execute this script, open a terminal window and navigate to the directory where the script is located. We'll assume the script file is called bc_script.sh. Make sure the file is executable using the chmod command:
chmod 755 bc_script.sh
Then you would enter:
./bc_script.sh
The result would be the following:
2


Answerd on:2019-07-15 Answerd By:KAPILJHADE

Likes:
Be first to like this answer

Dislikes:
Be first to dislike this answer
Talk about this  Like  Dislike
bc command is used for command line calculator. It is similar to basic calculator by using which we can do basic mathematical calculations. 
Arithmetic operations are the most basic in any kind of programming language. Linux or Unix operating system provides the bc command and expr command for doing arithmetic calculations. You can use these commands in bash or shell script also for evaluating arithmetic expressions. 
Syntax
bc [ -hlwsqv ] [long-options] [ file ... ] 
Options: 
-h, {- -help } : Print the usage and exit 
-i, {- -interactive } : Force interactive mode 
-l, {- -mathlib } : Define the standard math library 
-w, {- -warn } : Give warnings for extensions to POSIX bc 
-s, {- -standard } : Process exactly the POSIX bc language 
-q, {- -quiet } : Do not print the normal GNU bc welcome 
-v, {- -version } : Print the version number and copyright and quit 


Answerd on:2021-12-28 Answerd By:Akhil-Dev-D

Likes:
Be first to like this answer

Dislikes:
Be first to dislike this answer
Talk about this  Like  Dislike

Type your answer here in no less than 50 words :



Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder