LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Simple Shell Script Calculator

Posted 11-05-2009 at 11:59 PM 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]
LQ Newbie
Posted in Uncategorized
Views 953 Comments 0 anirudhm is offline
Old

Phone calls from Microsoft

Posted 11-05-2009 at 03:26 PM by pereb

Pretty funny stuff, in a sad sort of way.

http://social.answers.microsoft.com/...8-0079764bb001

I can't believe that people fall for this. Why would Microsoft call someone to tell them they have a virus? Although, the script they use is somewhat humorous.
"Are you online now?" - followed by "Is your computer running slowly?"

The sad part is that I have a mother in law...
LQ Newbie
Posted in Uncategorized
Views 2320 Comments 1 pereb is offline
Old
Rating: 3 votes, 3.67 average.

"Slackware Linux assumes you're smart."

Posted 11-05-2009 at 02:56 PM by Lufbery (The Slacker's Blog)

I use Slackware Linux at home, where I play systems administrator for my wife and me -- and eventually our child(ren, after the next one is born in December). I'm going to quote an interview with Alien Bob to explain why I use Slackware:

Quote:
To me, Slackware’s philosophy has a different angle that sets it apart from all the others. To this day, Slackware has an extremely lean design, intended to make you experience Linux the way the software authors intended. This is accomplished
...
Senior Member
Posted in Uncategorized
Views 1622 Comments 1 Lufbery is offline
Old

The 6th ArchToad's Laws of Scripting

Posted 11-05-2009 at 10:25 AM by archtoad6

Preface
"Clarity, Brevity, Generality"
Paterned after the "Liberté, égalité, fraternité" of the French Revolution, these are the watch words with which I introduced a presentation on programming I gave to HLUG (H=Houston) about 4 years ago. I quote them here, 1st because they are appropriate, & 2nd because I want my copyright & other intellectual property claim on the public record.

I have strong opinions on programming, especially scripting...
Senior Member
Posted in Uncategorized
Views 1104 Comments 0 archtoad6 is offline
Old

Still a N00b

Posted 11-04-2009 at 07:30 PM by zaivala

I'm one of those Linux users who would like Linux to operate more like, at least in appearance and functionality, Windoze. I've been having a great time with Ubuntu, using it regularly since 8.04 Hardy Heron. I still don't know many of the ins and outs of Linux or even Ubuntu, as I'm more of a user than a programmer or administrator. If someone tells me to go into Terminal and enter ____, I can copy and paste, run it, and report the results, but that's about as deep as I get.

The...
Member
Posted in Uncategorized
Views 1314 Comments 1 zaivala is offline

  



All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration