Inferring from lines 5 and 8, the division should be done by constant 2, not the line count per key. Under the assumption that field 8, embedded in field separators, is NOT matched anywhere else in the line, try
Should the line count matter, try
Hi,
I'm a UNIX newbie .. so forgive me if this question sounds dumb.
:)
Is it possible for Unix to notify a process that a particular directory has been updated? Rather that the process constantly polling the directory ...
Awaiting your replies ..
Thanks,
VJ (6 Replies)
Hi All,
I already have gcc complier installed in my machine.
Its version is : gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
I am not sure whethere it's is latest gcc version available. I want to update my gcc version. Can anyone please suggest me what is the latest and stable gcc... (1 Reply)
I have a file (key.dat) that contains two columns:
AA|1234|
BB|567|
CC|8910|
I have another file (extract.dat) that contains some data:
SD|458|John|Smith|
AA|3345|Frank|Williams|
AA|1234|Bill|Garner|
BD|0098|Yu|Lin|
BB|567|Gail|Hansen|
CC|8910|Ken|Nielsen|
I want to compare the... (5 Replies)
Hi,
We have recently implemented 'quota' concept for the unix users.
softlimit - 230MB
hardlimit - 250MB
We have applied the quota when few of users are more than the hardlimit,issue is that even though the users cleared the space, still its 'quota' was not updating properly.
For some... (0 Replies)
Hi All,
Can anyone help to write the script to check files updation?
i have files as mentioned below. which will be updated some time.
i just want to check the last file is updating the data for last 15 mins or not.
if its not updating i want to print NOT OK. if its updating data i want... (1 Reply)
Hello All,
I need to update my .cfg file which is used in the script for almost all runs.
myfile.cfg file:
var=1
var1=1
run=0
script:
#! /bin/sh
. /mydir/myfile.cfg
echo $var"\t" $var1
exit
So, the requirement is that the myfile.cfg should update every time I run the... (10 Replies)
Hi All,
I have a requirement where i need to check if an rsa public key corresponds to a private key and hence return success or failure. Currently i am using the command
diff <( ssh-keygen -y -e -f "$PRIVKEY" ) <( ssh-keygen -y -e -f "$PUBLICKEY" )
and its solving my purpose. This is in... (1 Reply)
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
Thanks a lot.
Any help is appreciated.
Script I am using:
awk 'FNR == NR && ! /^]*$/ {... (9 Replies)
Hi all
I have two files I need to match record from first file and second file on column 1,8 and and output only match records on file1
File1:
020059801803180116130926800002090000800231000245204003160000000002000461OUNCE000000350000100152500BM01007W0000 ... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
LEARN ABOUT DEBIAN
torrus_rrddir2xml
TORRUS_RRDDIR2XML(8) torrus TORRUS_RRDDIR2XML(8)NAME
rrddir2xml - Searches a directory for RRD files and generates Torrus XML configuration file.
SYNOPSIS
torrus rrddir2xml --dir=DIR [options...]
DESCRIPTION
rrddir2xml searches in a given directory for RRD files and creates Torrus XML configuration file suitable for browsing ofthose data files.
With default options, it is usable for RRD files generated by Torrus' SNMP collector, where the file name starts with the host name,
separated by underscore from interface name or other MIB specifics. With these defaults, it creates a subtree per each host name, and all
RRD files belonging top that host name are sorted alphabetically in that subtree.
OPTIONS --dir=DIR
Absolute path to the directory for searching. The directory may contain also non-RRD files. Only regular files are processed, and the
symlinks are ignored.
--recursive
If specified, the directory will be searched recursively. All file names across all subdirectories must be unique. Symlinks to other
directories are ignored.
--filter=Regexp
If the filter is specified, then rrddir2xml lists only those files and subdirectories whose names match the given regular expression.
--out=FILE
Output XML file name. If relative path given, the file is placed in /etc/torrus/xmlconfig. Default: rrddir.xml.
--subtree=SUBTREE
Top subtree path in the generted XML. Default is the top of the tree ("/").
--split=REGEXP
Regular expression used for splitting the file name into parts to build the subtree hierarchy. Default is a sequence of underscores
("_+").
--levels=INTEGER
Number of levels of hierarchy to build by splitting the file names. Default is 2 levels.
--comment=TEXT
Text to put as "comment" parameter to the top subtree.
--holtwinters
If specified, Holt-Winters prediciton boundaries and failures are displayed in the graphs.
--verbose
Prints extra diagnosics.
--debug
Prints debugging information.
SEE ALSO torrus(8)NOTES
See more documentation at Torrus home page: http://torrus.org
AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com>
torrus 2.03 2013-07-26 TORRUS_RRDDIR2XML(8)