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

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
LIGHTYENABLEMOD(1)					      General Commands Manual						LIGHTYENABLEMOD(1)

NAME
lighty-enable-mod, lighty-disable-mod - enable or disable configuration in lighttpd server SYNOPSIS
lighty-enable-mod [module] lighty-disable-mod [module] DESCRIPTION
This manual page documents briefly the lighty-enable-mod and lighty-disable-mod commands. lighty-enable-mod and lighty-disable-mod are programs that enable (and respectively disable) the specified configuration file within lighttpd configuration. Both programs can be run interactively or from command line. If either program is called without any arguments, an input prompt is dis- played to the user, where he might choose among available lighttpd modules. Immediate action is taken, if a module name was given on the command line. EXIT STATUS Both programs indicate failure in their exit status. lighty-enable-mod or lighty-disable-mod respectively may leave execution with one of the following exit codes: 0 denotes success 1 denotes a fatal error (e.g., a module could not be enabled, or a dependency was not found) 2 denotes a minor flaw (e.g., a module was not enabled because it was already loaded before) Note You can (un-) load several modules at time. The exit status will only reflect the most serious issue (where a minor flaw beats no error, but a fatal error beats a minor flaw). This means, if a minor flaw was encountered as well as a fatal error, the program will leave with exit status 1 and stop immediately. DEPENDENCIES
Debian allows lighttpd modules to formulate dependencies to other modules they depend on. Configuration files are scanned for dependencies upon load or unload of modules, not at runtime of the web server. Such a magic line has the following format: # -*- depends: module[, module] -*- and may appear anywhere in the file. If such a line is found, the extracted name is interpreted as dependency to another lighttpd module. lighty-enable-mod will seek available configurations to satisfy this dependency and will recursively enable all dependencies found on its way. lighty-disable-mod will disable reverse dependencies recursively. SEE ALSO
lighttpd(1) AUTHOR
Program and man pages were originally written by Krzysztof Krzyaniak <eloy@debian.org> and later modified by Arno Toll <debian@toell.net> 2006-01-11 LIGHTYENABLEMOD(1)
All times are GMT -4. The time now is 11:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy