If all you care about is whether or not there is a match, you do not need to capture the output of grep and then compare it; you can simply test its exit status directly:
Or, perhaps, more optimistically:
Regards,
Alister
Hi people.
Don't know if you could help me, but here it goes anyway.
I need to search for some directories, and if i for any file founded a must run another Bat file.
Can this be done in DOS ?
Thanks in advance (1 Reply)
Hi,
In a kshell , i need to compare the results of two array .
each Non-match value should copy to a new array.
For example:
==========
Array one contain the following values:
A
B
C
Array two contain the following values:
C
F
A
E
After comparing this arrays , a new array should... (4 Replies)
How can I send the results of a query to a unix variable. I basically want to run a query then do some logic on the results. Trying to redirect the result into a variable I define in the script.
select count(*) as counter from table - nut to redirect the "count" returned from the query... (2 Replies)
Hello,
I am working with KSH on AIX and I have 2 files generated from different sources... as seen below:
FILE1 FILE2
AAA AAA@ABS0001C
BBB BBB@ABS0003D
CCC CCC@ABS0023A
DDD DDD@ABC0145D
EEE EEE@ABS0090A
FFF FFF@ABS0002A
GGG GGG@ABC0150D
HHH
FILE1 is main main data source,... (4 Replies)
Hi ,
I am not familiar with shell programming. I have a requirement like i have two files
.I need to compare the two files by comparing each parameter and i should produce 2 outputs.
1)i have around 35 parameters say i have one parameter name called db_name=dcap in one file and... (7 Replies)
Here is one I am baffled with; I have not used unix for a while and now that I am back it has been fun remembering and I have enjoyed it, for the most past. this is in ksh.
I need to search in a file for the line with X1 and cut columns 20-25, put them into a variable, added them (dollar... (3 Replies)
Hi all,
I am posting the thread similar to previous posts but here my scenario is i need to know what the files size from start date. Here end time file size will be 0. Also need to know how much time does it took to complete in seconds.
log file:
Name1 START 11:36:45 ... (5 Replies)
Hello All,
I'm working on a script that will actually read a file consisting of data like the below:(ReportID,Sub_reportID,Sub_reportName)
1,1,ABC
1,2,DEF
1,3,GHI
2,1,JKL
2,2,MNO
3,1,PQR
I want to read the Sub Report details for a Report_ID using while loop and write these values into... (6 Replies)
In the below bash I am trying to read each file from a specific directory into a variable REF or VAL. Then use those variables in an awk to compare each matching file from REF and VAL. The filenames in the REF are different then in the VAL, but have a common id up until the _ I know the awk portion... (15 Replies)
Good morning all,
This is the file name in question OD_Orders_2019-02-19.csv
I am trying to create a bash script to read into files with yesterdays date on the file name while retaining the rest of the files name. I would like for $y to equal, the name of the file with a formula output with... (2 Replies)
Discussion started by: Ibrahim A
2 Replies
LEARN ABOUT DEBIAN
webdruid
webdruid(1) The WebDruid webdruid(1)NAME
webdruid - A web site log file analysis tool.
SYNOPSIS
webdruid [ option ... ] [ log-file1 ] [ log-file2 ] ...
webdruid-resolve [ option ... ] [ log-file1 ] [ log-file2 ] ...
DESCRIPTION
The WebDruid is a web site log file analysis program which produces usage statistics in HTML format for viewing with a browser. The
results are presented in both columnar and graphical format, which facilitates interpretation. Yearly, monthly, daily and hourly usage
statistics are presented, along with the ability to display usage by site, URL, referrer, user agent (browser), username, search strings,
entry/exit pages, and country (some information may not be available if not present in the log file being processed).
The WebDruid supports CLF (common log format) log files, as well as Combined log formats as defined by NCSA and others, and variations of
these which it attempts to handle intelligently. In addition, the WebDruid also supports W3C formatted log files, allowing it to parse IIS
log files. Logs may also be compressed, via gzip. If a compressed log file is detected, it will be automatically uncompressed while it is
read. Compressed logs must have the standard gzip extension of .gz.
The WebDruid, when used with the graphviz tools, can produce path graphs and users flow graphs. Path graph allows you to see the preferred
path your users take when browsing on your web site. Users flow will draw lines between the urls, each line being balanced by the number of
hits. For more information see 'Using path & users flox graphs' in the README file.
webdruid-resolve is normally just a symbolic link to webdruid. When run as webdruid-resolve, only DNS file creation/updates are performed,
and the program will exit once complete. All normal options and configuration directives are available, however many will not be used.
The WebDruid main documentation is located in the README file. It contains instructions on operating with the software, as well as a ref-
erence for all the /etc/webdruid/webdruid.conf config file directives, and command line options.
BUGS
Report bugs to fabien@juliana-multimedia.com.
COPYRIGHT
Copyright (C) 2003-2004 by Fabien Chevalier.
Original Copyright (C) 1997-2000 by Bradford L. Barrett.
Distributed under the GNU GPL. See the files "COPYING" and "Copyright", supplied with all distributions for additional information.
AUTHOR
Fabien Chevalier <fabien@juliana-multimedia.com>
Version 0.5.4 22-Jun-2004 webdruid(1)