LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 01-31-2003, 04:47 AM   #1
zibertron
LQ Newbie
 
Registered: Jan 2003
Location: Southern Cali- L A
Distribution: Red Hat 7.1
Posts: 7

Rep: Reputation: 0
Talking here is my real question


um sorry for the wrong questions posted earlier,and if i offended anyone, but here goes
I need to make a script that accepts ten numbers and displays the highest number entered, so far i have the following:
#!/bin/bash
echo " please enter ten numbers"
echo "enter num 1"
read num1
echo "enter num 2"
read num2
echo "enter num 3" #im only doing 3 numbers now to test it first
read num3
if [ $num1 -gt $num2 -a gt $num3 ;; $num2 -gt $num1 -a $num3 ;; $num3 -gt $num1 -a -gt $num2 ]
then
echo " $num1 is the highest number"
elif
echo " $num2 is the highest number"
else
echo " $num3 is the highest number"
fi
# or what else could i do?
 
Old 01-31-2003, 05:26 AM   #2
0x0001
Member
 
Registered: Sep 2002
Distribution: Slackware 8.1
Posts: 84

Rep: Reputation: 15
It seems like this guy doesn't only want us to do his homework, he seem also inept of reading what he agreed to (i.e. no double posts)

please answer here: http://www.linuxquestions.org/questi...threadid=43486
 
Old 02-01-2003, 01:48 AM   #3
zibertron
LQ Newbie
 
Registered: Jan 2003
Location: Southern Cali- L A
Distribution: Red Hat 7.1
Posts: 7

Original Poster
Rep: Reputation: 0
screw you guys man, i thought this was the place were nubies come to....seems more like the place were anal-retentive ppl hang out
 
Old 02-01-2003, 05:20 AM   #4
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
I gave you the answer in the other post and by the way,

you won't get any help with an attitude like that
 
Old 02-01-2003, 09:07 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Well this thread is being closed for obvious reasons.

And zibertron,

As the rules state, double posting is not allowed. You agreed to that when registering on this site. There is never a reason to double post ever !

http://www.linuxquestions.org/rules.php

BTW, it seems you got plenty of replies in your first thread that was actually posted in the correct forum.

Last edited by trickykid; 02-01-2003 at 09:09 AM.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OK, I think I finally have a REAL question! Sgaileach1 Linux - Software 1 02-21-2004 01:18 AM
Real NEWBIE question! rkhartley Linux - Newbie 4 10-29-2003 09:56 PM
dual display question - real real newbie !! Jay_Dee007 Linux - Newbie 1 09-29-2003 08:33 AM
Real Programmers Real People Real CS Students nakkaya General 5 07-04-2003 02:46 PM
Real Newbie Question... killer_cobra Linux - Newbie 4 11-04-2002 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:23 PM.

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
Open Source Consulting | Domain Registration