I should not post classroom questions here


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting I should not post classroom questions here
# 1  
Old 09-10-2012
I should not post classroom questions here

Hi
Please help me.
I have file which contains
Code:
60
59
52
45
43
40
70
69
62

which bash script can give me "pass on every line and every time remembering previous number give me the first mutch where next number greater than previous, in this example 70"
Please help thank you.

Moderator's Comments:
Mod Comment edit by bakunin: First off, we have a separate forum for classroom/homework questions. As this is clearly no real-world problem i close this thread. Note that special rules apply in the homework forum.

Second: you posted yuor question into an existing thread (the one about the Tetris game written in shell) and this is against our rules. Do not hijack threads, open a new one for every distinct problem.

Third: please use code tags next time for your code and data.

Last edited by bakunin; 09-10-2012 at 11:37 AM..
# 2  
Old 09-10-2012
bash script compare numbers

Rep: Image

Hi
Please help me.
I have file which contains
60
59
52
45
43
40
70
69
62
which bash script can give me "pass on every line and every time remembering previous number give me the first mutch where next number greater than previous, in this example 70"
Please help thank you.

Moderator's Comments:
Mod Comment edit by bakunin: and it won't help when you post the same into the existing thread again.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

2. Post Here to Contact Site Administrators and Moderators

How to post technical questions?

Hi Admin, Please let me know How to post technical questions? Thanks, Sunil.K (5 Replies)
Discussion started by: sunilrk07
5 Replies

3. Post Here to Contact Site Administrators and Moderators

How do I post UNIX questions in the forum

I guess this is the way I post questions then. (1 Reply)
Discussion started by: kwokang
1 Replies

4. Forum Support Area for Unregistered Users & Account Problems

how to post questions in different forums.

Hi, Am unable to post questions in Shell programming and scripting forum, or any please advice, the message am getting is user not have enough previlage to do the action like this type of message was displayed. Regards, azum. (1 Reply)
Discussion started by: azumthulla
1 Replies

5. Forum Support Area for Unregistered Users & Account Problems

how to post questions

How to post questions to the forum .....? There is no direct link for this in the home page....... Even in the forums I couldn't see any button or link like new threads or new posts could people get these links visible only once they logged in ........? Please clarify these doubts........ (3 Replies)
Discussion started by: unknownbuddy
3 Replies

6. UNIX for Dummies Questions & Answers

Where should I post questions about SCSA?

Is there a separate forum to post questions about SCSA? or can I post some questions here? please let me know...thanks. (3 Replies)
Discussion started by: dookeobih
3 Replies
Login or Register to Ask a Question