ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



Other IT certifications > Linux/Unix > How do you use expr in Bourne UNIX?

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread






Author How do you use expr in Bourne UNIX?
lorlooks
Junior Member




Registered: Aug 2001
Location:
Country: United States
State: NJ
Certifications: CCNA
Working on:

Total Posts: 2
How do you use expr in Bourne UNIX?

Hello everyone, I'm new to unix and want to write a simple program to use expr to find the sum and average of a set of numbers entered on the keyboard. Any and all help is very much welcome.

Thanks Lori

Report this post to a moderator

Old Post 11-13-01 04:11 AM
lorlooks is offline Click Here to See the Profile for lorlooks Click here to Send lorlooks a Private Message Add lorlooks to your buddy list Find more posts by lorlooks Reply w/Quote Edit/Delete Message IP: Logged
ccieToBe
Wireless Fanatic




Registered: Jul 2000
Location: Blue Ridge, North Georgia
Country: US
State:
Certifications: CCDA, CNA, MCP, Network+, A+, BSIT
Working on: Security+

Total Posts: 2210
Re: How do you use expr in Bourne UNIX?

quote:
Originally posted by lorlooks
Hello everyone, I'm new to unix and want to write a simple program to use expr to find the sum and average of a set of numbers entered on the keyboard. Any and all help is very much welcome.

Thanks Lori



Here's a tutorial that should get you started. It's written for the BSDs, but should apply to any OS that can run the bourne shell.

http://www.daemonnews.org/200010/answerman.html

Report this post to a moderator

Old Post 11-13-01 08:22 AM
ccieToBe is offline Click Here to See the Profile for ccieToBe Click here to Send ccieToBe a Private Message Visit ccieToBe's homepage! Add ccieToBe to your buddy list Find more posts by ccieToBe Reply w/Quote Edit/Delete Message IP: Logged
sibley
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
try this

#!/usr/bin/sh
echo `expr $1 /2 + $2 / 2`

Report this post to a moderator

Old Post 11-16-01 07:55 PM
Reply w/Quote Edit/Delete Message IP: Logged
haseeb_eng
Senior Member
M




Registered: Oct 2001
Location: Kuwait City
Country: Kuwait
State:
Certifications: CCNA, CCDA, CCNP, CCDP, CCSP, Content Networking, Wireless LAN Design Spec.
Working on: PMP CCIE (R&S) MBA

Total Posts: 1165
Arrow redhat linux 7

Hi friends,
I had got 2 Linux Red Hat 7.0 servers in an ISP . I did not worked with Linux redhat before . And please give me also any website address where i can find its documentation so it can help me out in administration . I had worked with sun solaris but that was long time back and i almost forgot it . Any help will be appreciated .


haseeb

Report this post to a moderator

Old Post 11-17-01 01:22 PM
haseeb_eng is offline Click Here to See the Profile for haseeb_eng Click here to Send haseeb_eng a Private Message Visit haseeb_eng's homepage! Add haseeb_eng to your buddy list Find more posts by haseeb_eng Reply w/Quote Edit/Delete Message IP: Logged
dmaftei
Senior Member
M




Registered: Nov 2000
Location:
Country: USA
State:
Certifications: none
Working on: none

Total Posts: 2156
Re: redhat linux 7

quote:
Originally posted by haseeb_eng
And please give me also any website address where i can find its documentation so it can help me out in administration .

These should get you started:
Red Hat
Linux Online

Report this post to a moderator

Old Post 11-17-01 02:43 PM
dmaftei is offline Click Here to See the Profile for dmaftei Click here to Send dmaftei a Private Message Add dmaftei to your buddy list Find more posts by dmaftei Reply w/Quote Edit/Delete Message IP: Logged
ccieToBe
Wireless Fanatic




Registered: Jul 2000
Location: Blue Ridge, North Georgia
Country: US
State:
Certifications: CCDA, CNA, MCP, Network+, A+, BSIT
Working on: Security+

Total Posts: 2210
Re: redhat linux 7

quote:
Originally posted by haseeb_eng
Hi friends,
I had got 2 Linux Red Hat 7.0 servers in an ISP . I did not worked with Linux redhat before . And please give me also any website address where i can find its documentation so it can help me out in administration . I had worked with sun solaris but that was long time back and i almost forgot it . Any help will be appreciated .


haseeb



Here are a few more links:

http://linuxnewbie.org
http://linuxdoc.org
http://google.com/linux

Report this post to a moderator

Old Post 11-17-01 02:48 PM
ccieToBe is offline Click Here to See the Profile for ccieToBe Click here to Send ccieToBe a Private Message Visit ccieToBe's homepage! Add ccieToBe to your buddy list Find more posts by ccieToBe Reply w/Quote Edit/Delete Message IP: Logged
haseeb_eng
Senior Member
M




Registered: Oct 2001
Location: Kuwait City
Country: Kuwait
State:
Certifications: CCNA, CCDA, CCNP, CCDP, CCSP, Content Networking, Wireless LAN Design Spec.
Working on: PMP CCIE (R&S) MBA

Total Posts: 1165
Smile thx guys

thx guys i hope so this will help me out

Report this post to a moderator

Old Post 11-18-01 07:05 AM
haseeb_eng is offline Click Here to See the Profile for haseeb_eng Click here to Send haseeb_eng a Private Message Visit haseeb_eng's homepage! Add haseeb_eng to your buddy list Find more posts by haseeb_eng Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Featured site: MCSE, MCSD, CompTIA, CCNA training videos



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps