03-26-2008
sort with highest wc
Hi
I'm a unix beginner and i've recently got an assignment to write up a script to print the most common IP address that made requests from a webserver.
I'm really lost in this one...and if someone could pls tell me where to start i'll be really greatful !
thanx
Last edited by ymf; 03-27-2008 at 01:12 AM..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a file that looks like this:
s6 98
s6 91
s6 56
s5 32
s5 10
s5 4
So what I want to do is print only the highest value for each value in the column:
So the file will look like this:
s6 98
s5 32
Thanks (4 Replies)
Discussion started by: phil_heath
4 Replies
2. Shell Programming and Scripting
Hi Gurus,
I've using HPUX B.11.23 U ia64 with shell = sh.
I've been having some problem get the highest number of this script.
Actually I wanted to get the highest number from this listing (TEST123 data and based on this highest number, there will be email being sent out.
For example,... (6 Replies)
Discussion started by: superHonda123
6 Replies
3. Shell Programming and Scripting
Hi all,
I have a simple problem. I have given an example of the problem below.
There are 4 space-delimited columns.
2655 96 IA -0.8179
2655 96 IA -0.9144
2655 96 CPU -0.4275
2655 96 RMA -0.3407
2655 96 IA -0.9373
2655 96 ... (2 Replies)
Discussion started by: jaysean
2 Replies
4. Shell Programming and Scripting
Hi all,
I'm trying to get the item with the maximum value, and was wondering if someone can help me with it.
Heres my input file:
apples 15
books 15
books 17
pens 12
pens 15
umbrella 13Here's what my output file should look like:
apples 15
books 17
pens 15
umbrella 13
Can... (2 Replies)
Discussion started by: r4v3n
2 Replies
5. Shell Programming and Scripting
print the key with highest value
input
a 10
a 20
a 30
b 2
b 3
b 1
output
a 30
b 3 (9 Replies)
Discussion started by: quincyjones
9 Replies
6. Shell Programming and Scripting
Hi All,
Can someone help steer me to the simplest approach to write a script that reads the second column of a csv file and returns the highest value.
example file:
DATE,QUANTITY
Mon Apr 30 01:56:00 2012,42
Mon Apr 30 02:24:00 2012,72
Mon Apr 30 02:56:00 2012,102
Mon Apr 30 02:59:00... (3 Replies)
Discussion started by: dekker74
3 Replies
7. UNIX for Dummies Questions & Answers
Within millions of lines of data, there are perhaps 20 "spikes" that are very narrow. I want only the highest value from each spike within a range of 10 rows. Possible?
My data looks like this, 8 columns of integers, millions of rows. There are clear spikes when you graph columns.
... (6 Replies)
Discussion started by: markymarkg123
6 Replies
8. Shell Programming and Scripting
Hi All
I do have a matrix in the following format
a_2 a_3 s_4 t_6
b 0 0.9 0.004 0
c 0 0 1 0
d 0 0.98 0 0
e 0.0023 0.96 0 0.0034
I have thousands of rows
I would like to parse the maximum value in each of the row and out put that highest value along the column header of... (2 Replies)
Discussion started by: Kanja
2 Replies
9. Shell Programming and Scripting
Hi Guys,
I am looking for a way to sort the output below from the "Inuse" count from Highest to Lowest. Is it possible?
Thanks in advance.
user1 0.12 0.06 0 0.12
User Inuse Pin Pgsp Virtual
Unit:... (4 Replies)
Discussion started by: jaapar
4 Replies
LEARN ABOUT DEBIAN
weborf.conf
Weborf(5) File Formats Manual Weborf(5)
NAME
weborf.conf - configuration file for weborf daemon
SYNOPSIS
/etc/weborf.conf
DESCRIPTION
Weborf is a minimal webserver. Also has a limited support for webdav.
Can be started as stand-alone or as SystemV daemon. This manual page documents Weborf's configuration file, used only when it is started as
daemon.
On debian systems, the script to run weborf as a daemon is located into /usr/share/docs/weborf and has to be manually copied into
/etc/init.d
Weborf is released under the GNU General Public License version 3.
DESCRIPTION
Options are case sensitive. Immediately followed by the equal = sign, without any space between name and value. Lines beginning with #
will be ignored and treated as comments.
indexes
By default weborf searches for index.html. Anyway it is possible to specify a different index file and also many index files. Name
of the pages must be separated by a comma and between them there aren't spaces.
basedir
Default base directory used by the webserver. The default means that this will be used also when virtual hosts are enabled, if the
requested host is unknown. Of course the user used for the webserver will need to have access to this directory.
use-cgi
Can be true or false. If false weborf will handle all files as normal files. Otherwise it will use the CGI protocol to execute some
files.
use-mime
Can be true or false. If true weborf will send the Content-Type header to the clients. Turning it off will increase speed but might
cause problems with some old clients.
cgi List of extensions to consider as dynamic pages and binaries to execute them
auth-bin
Path of the binary that provides authentication to weborf
auth-socket
Path of the unix socket that weborf will use to connect to the authentication server
cachedir
Will set the path of the directory used for caching
user Username of the user that will run the webserver. On debian this is usually www-data.
virtual
This directive is used to enable virtualhosts. One line is needed for each port. The format is: vir-
tual#port#domain1=basedir1,domain2=basedir2
EXAMPLE
Example file can be found in /usr/share/doc/weborf/examples/weborf.conf
SEE ALSO
weborf(1)
VERSION
Weborf0.13
WEB
http://galileo.dmi.unict.it/wiki/weborf/
AUTHORS
Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
Salvo Rinaldi <salvin@anche.no>
Minimal webserver Sep 13, 2009 Weborf(5)