Hi All,
I have a .dat file named test.dat where I have stored some process IDs.
Now I need to pick a process ID, one by one and then fire kill -9 for each of those. The logic should be:
1. open file <filename.dat>
2. read until last line of file
3. if process ID is found fire kill -9... (5 Replies)
I have one file data.txt. This data.txt file contain "no of head=3" string.
From a shell script I want to check whether data.txt file contains "no of head" string or not, if yes then want to fetch the value 3 and store it in a variable. Anyone plz help me. (4 Replies)
Hi,
I have the Ms Excel file(test.xls) in my UNIX box. I would like to read the excel file and create files for each column.
Please find an example.
My excel file like this data:
Num Data
1 a1
2 b2
3 c3
4 d4
5 e5
6 f6
7 h7
My output:
I want create 2 files(num.log and... (3 Replies)
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
Hi,
I'm new to unix.. I need to read only the first two values from a file that contains many data....My record is like this
FTG_ver_num=7.0
RUN_ID=2
$$tgt_envrnmt_cd=FTG
$$WRK_FLW_CD=NPL
I need oly the values of ETG_ver_num and RUN_ID.
i.e) output to be 7.0 and 2
The code i used... (2 Replies)
hi all,
I have flat file in unix. By using sql loader i need to import the data from the flat file. I have created a control file, table with the below data structure and pasted the sample input file. I am not sure whether it is a right way to do it. can anyone provide the thought on this.
... (2 Replies)
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
LEARN ABOUT CENTOS
varnishtop
VARNISHTOP(1)VARNISHTOP(1)NAME
varnishtop - Varnish log entry ranking
SYNOPSIS
varnishtop [-1] [-b] [-C] [-c] [-d] [-f] [-I regex] [-i tag] [-n varnish_name] [-r file] [-V] [-X regex] [-x tag]
DESCRIPTION
The varnishtop utility reads varnishd(1) shared memory logs and presents a continuously updated list of the most commonly occurring log
entries. With suitable filtering using the -I, -i, -X and -x options, it can be used to display a ranking of requested documents, clients,
user agents, or any other information which is recorded in the log.
The following options are available:
-1 Instead of presenting of a continuously updated display, print the statistics once and exit. Implies -d.
-b Include log entries which result from communication with a backend server. If neither -b nor -c is specified, varnishtop acts as if
they both were.
-C Ignore case when matching regular expressions.
-c Include log entries which result from communication with a client. If neither -b nor -c is specified, varnishtop acts as if they
both were.
-d Process old log entries on startup. Normally, varnishtop will only process entries which are written to the log after it starts.
-f Sort and group only on the first field of each log entry. This is useful when displaying e.g. stataddr entries, where the first
field is the client IP address.
-I regex
Include log entries which match the specified regular expression. If neither -I nor -i is specified, all log entries are included.
-i tag Include log entries with the specified tag. If neither -I nor -i is specified, all log entries are included.
-p period
Specifies the number of seconds to measure over, the default is 60 seconds. The first number in the list is the average number of
requests seen over this time period.
-n Specifies the name of the varnishd instance to get logs from. If -n is not specified, the host name is used.
-r file
Read log entries from file instead of shared memory.
-V Display the version number and exit.
-X regex
Exclude log entries which match the specified regular expression.
-x tag Exclude log entries with the specified tag.
EXAMPLES
The following example displays a continuously updated list of the most frequently requested URLs::
varnishtop -i RxURL
The following example displays a continuously updated list of the most commonly used user agents::
varnishtop -i RxHeader -C -I ^User-Agent
SEE ALSO
o varnishd(1)
o varnishhist(1)
o varnishlog(1)
o varnishncsa(1)
o varnishstat(1)HISTORY
The varnishtop utility was originally developed by Poul-Henning Kamp in cooperation with Verdens Gang AS and Varnish Software AS, and later
substantially rewritten by Dag-Erling Smorgrav. This manual page was written by Dag-Erling Smorgrav.
COPYRIGHT
This document is licensed under the same licence as Varnish itself. See LICENCE for details.
o Copyright (c) 2006 Verdens Gang AS
o Copyright (c) 2006-2011 Varnish Software AS
AUTHOR
Dag-Erling Smorgrav
1.0 2010-05-31 VARNISHTOP(1)