Whats up fellas... hope someone can help me with the following...
I am parsing an file that is space delimited, however, in the middle, there is an ugly "Account Name" feild that in itself has multiple varying spaces, and commas which throws off my script.
The 1st 3 feilds I am able to obtain... (8 Replies)
Hi,
I am writing a code where the file is a pipe delimited and I would need to extract the 2nd part of field2 if it is "ATTN", "C/O" or "%" and check to see if field9 is populated or not. If field9 is already populated then leave it as is but if field9 is not populated then take the 2nd part of... (3 Replies)
Hi All!
I trying to execute this perl script to extract a particular field in a text file, luckily it works. But, right now I would like to extract 3 more fields in the text file but couldnt get the right syntax on how to do it.
command is:
perl -pe '$_ = (split(//)) . "\n"' TestDoc.txt... (3 Replies)
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Hi,
I am trying to write shell script for below requirement
File has below values
@mqm soft nproc 75000
@mqm hard nproc 75000
@mqm soft nofiles 76492
@mqm hard nofiles 76492
@mqm soft locks 76492
@mqm hard ... (7 Replies)
input
"A","B","C,D","E","F"
"S","T","U,V","W","X"
"AA","BB","CC,DD","EEEE","FFF"
required output:
"A","B","C,D","C,D","F"
"S", T","U,V","U,V","X"
"AA","BB","CC,DD","CC,DD","FFF"
tried using awk but double quotes not preserving for every field. any help to solve this is much... (5 Replies)
im trying to get
awk to print the string between 3rd and 4th backslashs to end of line
test could be any word
this
http://example.com/test/ >to this
http://example.com/test/ > testalso the other way round insert string at end of line... (13 Replies)
Discussion started by: bob123
13 Replies
LEARN ABOUT CENTOS
pmloadderivedconfig
PMLOADDERIVEDCONFIG(3) Library Functions Manual PMLOADDERIVEDCONFIG(3)NAME
pmLoadDerivedConfig - load derived metric definitions from a file
C SYNOPSIS
#include <pcp/pmapi.h>
int pmLoadDerivedConfig(char *fname);
cc ... -lpcp
DESCRIPTION
Each line of the file fname is either a comment line (with a ``#'' in the first position of the line) or the declaration of a derived per-
formance metric, specified as:
* the name of the derived metric, using the same ``dot notation'' syntax that is used for PCP performance metrics, see PCPIntro(1) and
pmns(5).
* an equals sign (``='')
* a valid expression for a derived metric, as described in pmRegisterDerived(3).
White space is ignored in the lines.
For each line containing a derived metric definition, pmRegisterDerived(3) is called to register the new derived metric.
The result from pmLoadDerivedConfig will be the number of derived metrics loaded from fname else a value less than zero in the case of an
error.
EXAMPLE
# sample derived metric definitions
bad_in_pkts = network.interface.in.errors + network.interface.in.drops
# note the following would need to be on a single line ...
disk.dev.read_pct = 100 * delta(disk.dev.read) /
(delta(disk.dev.read) + delta(disk.dev.write))
SEE ALSO PCPIntro(1), PMAPI(3) and pmRegisterDerived(3).
Performance Co-PilotPMLOADDERIVEDCONFIG(3)