Sponsored Content
Top Forums Shell Programming and Scripting I should not post classroom questions here Post 302698627 by Hayko on Monday 10th of September 2012 10:29:22 AM
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..
 

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
RBASH(1)						      General Commands Manual							  RBASH(1)

NAME
rbash - restricted bash, see bash(1) RESTRICTED SHELL
If bash is started with the name rbash, or the -r option is supplied at invocation, the shell becomes restricted. A restricted shell is used to set up an environment more controlled than the standard shell. It behaves identically to bash with the exception that the follow- ing are disallowed or not performed: o changing directories with cd o setting or unsetting the values of SHELL, PATH, ENV, or BASH_ENV o specifying command names containing / o specifying a filename containing a / as an argument to the . builtin command o specifying a filename containing a slash as an argument to the -p option to the hash builtin command o importing function definitions from the shell environment at startup o parsing the value of SHELLOPTS from the shell environment at startup o redirecting output using the >, >|, <>, >&, &>, and >> redirection operators o using the exec builtin command to replace the shell with another command o adding or deleting builtin commands with the -f and -d options to the enable builtin command o using the enable builtin command to enable disabled shell builtins o specifying the -p option to the command builtin command o turning off restricted mode with set +r or set +o restricted. These restrictions are enforced after any startup files are read. When a command that is found to be a shell script is executed, rbash turns off any restrictions in the shell spawned to execute the script. SEE ALSO
bash(1) GNU Bash-4.0 2004 Apr 20 RBASH(1)
All times are GMT -4. The time now is 08:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy