LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > anirudhm
User Name
Password

Notices

Rate this Entry

Simple Shell Script Calculator

Submit "Simple Shell Script Calculator" to Digg Submit "Simple Shell Script Calculator" to del.icio.us Submit "Simple Shell Script Calculator" to StumbleUpon Submit "Simple Shell Script Calculator" to Google Submit "Simple Shell Script Calculator" to LinuxQuestions.org
Posted 11-06-2009 at 12:59 AM by anirudhm

Quote:
Originally Posted by anirudhm View Post
Hi,
Cant we try simple calculator script as below:


echo "enter first number"
read a
echo "enter second number"
read b
echo "enter operand"
read c
calc=`expr
$a "$c" $b`
echo the result is $calc[/quote]
Posted in Uncategorized
Views 160 Comments 0 Edit Tags
« Prev     Main     Next »
Total Comments 0

Comments

 


All times are GMT -5. The time now is 06:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration