11-09-2016
Sorry but it's unclear. Please give a short and comprehensive example of what you have, what you want, and what you've tried.
By respect for those who reads you, also take the time to explain the logic of the expected result, rather than waiting for people to download/unzip and auto-magically decipher your needs.
Thanks for your understanding
This User Gave Thanks to ctsgnb For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I need some assistance to extract a piece of information from a huge file.
The file is like this one :
database information
ccccccccccccccccc
ccccccccccccccccc
ccccccccccccccccc
ccccccccccccccccc
os information
cccccccccccccccccc
cccccccccccccccccc... (2 Replies)
Discussion started by: Marcor
2 Replies
2. Shell Programming and Scripting
Hi,
Following is sample portion of the file;
<JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver"
MaxCapacity="10" Name="MyApp_DevPool"
PasswordEncrypted="{3DES}7tXFH69Xg1c="
Properties="user=MYAPP_ADMIN" ShrinkingEnabled="false"
... (12 Replies)
Discussion started by: sujoy101
12 Replies
3. Shell Programming and Scripting
Good evening! Trying to make a shell script to parse log file and show only required information.
log file has 44 fields and alot of lines, each columns separated by ":".
log file is like:
first_1:3:4:5:6:1:3:4:5:something:notinterested
second_2:3:4:3:4:2
first_1:3:4:6:6:7:8
I am interested... (3 Replies)
Discussion started by: dummie55
3 Replies
4. Shell Programming and Scripting
Hi to all,
I got this content/pattern from file http.log.20110808.gz
mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1
mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU
mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)
Discussion started by: Mr_47
16 Replies
5. Shell Programming and Scripting
I'm still new to bash script , I have a log file and I want to extract the items within the last 5 days . and also within the last 10 hours
the log file is like this : it has 14000 items started from march 2002 to january 2003
awk '{print $4}' < *.log |uniq -c|sort -g|tail -10
but... (14 Replies)
Discussion started by: matarsak
14 Replies
6. Shell Programming and Scripting
Hye ShamRock
If you can help me with this difficult task for me then it will save my day
Logs :
==================================================================================================================
... (4 Replies)
Discussion started by: SilvesterJ
4 Replies
7. Shell Programming and Scripting
Hi, i have a file like this:
<Iteration>
<Iteration_iter-num>3</Iteration_iter-num>
<Iteration_query-ID>lcl|3_0</Iteration_query-ID>
<Iteration_query-def>G383C4U01EQA0A length=197</Iteration_query-def>
<Iteration_query-len>197</Iteration_query-len>
... (9 Replies)
Discussion started by: the_simpsons
9 Replies
8. Shell Programming and Scripting
Hello!
I need help :) I have a file like this:
AA BC FG
RF TT GH
DD FF HH
(a few number of rows and three columns) and I want to put the letters of each column in a variable step by step in order to give them as input in another script. So I would like to obtain:
for the 1° loop:... (11 Replies)
Discussion started by: edekP
11 Replies
9. Shell Programming and Scripting
In a particular directory, there can be 1000 files like below.
filename is job901.ksh
#!/bin/ksh
cront -x << EOJ
submit file=$PRODPATH/scripts/genReport.sh maxdelay=30
&node=xnode01
tname=job901
&pfile1=/prod/mldata/data/test1.dat
... (17 Replies)
Discussion started by: vedanta
17 Replies
10. UNIX for Beginners Questions & Answers
I need help to extract transcript information from gff3 file.
Here is the input
Chr01 JGI gene 82773 86941 . - . ID=Potri.001G000900;Name=Potri.001G000900
Chr01 JGI mRNA 82793 86530 . - . ID=PAC:27047814;Name=Potri.001G000900.1;pacid=27047814;longest=1;Parent=Potri.001G000900... (6 Replies)
Discussion started by: Maduranga
6 Replies
LEARN ABOUT CENTOS
perf-diff
PERF-DIFF(1) perf Manual PERF-DIFF(1)
NAME
perf-diff - Read perf.data files and display the differential profile
SYNOPSIS
perf diff [baseline file] [data file1] [[data file2] ... ]
DESCRIPTION
This command displays the performance difference amongst two or more perf.data files captured via perf record.
If no parameters are passed it will assume perf.data.old and perf.data.
The differential profile is displayed only for events matching both specified perf.data files.
OPTIONS
-D, --dump-raw-trace
Dump raw trace in ASCII.
-m, --modules
Load module symbols. WARNING: use only with -k and LIVE kernel
-d, --dsos=
Only consider symbols in these dsos. CSV that understands file://filename entries.
-C, --comms=
Only consider symbols in these comms. CSV that understands file://filename entries.
-S, --symbols=
Only consider these symbols. CSV that understands file://filename entries.
-s, --sort=
Sort by key(s): pid, comm, dso, symbol.
-t, --field-separator=
Use a special separator character and don't pad with spaces, replacing all occurrences of this separator in symbol names (and other
output) with a . character, that thus it's the only non valid separator.
-v, --verbose
Be verbose, for instance, show the raw counts in addition to the diff.
-f, --force
Don't complain, do it.
--symfs=<directory>
Look for files with symbols relative to this directory.
-b, --baseline-only
Show only items with match in baseline.
-c, --compute
Differential computation selection - delta,ratio,wdiff (default is delta). See COMPARISON METHODS section for more info.
-p, --period
Show period values for both compared hist entries.
-F, --formula
Show formula for given computation.
-o, --order
Specify compute sorting column number.
COMPARISON
The comparison is governed by the baseline file. The baseline perf.data file is iterated for samples. All other perf.data files specified
on the command line are searched for the baseline sample pair. If the pair is found, specified computation is made and result is displayed.
All samples from non-baseline perf.data files, that do not match any baseline entry, are displayed with empty space within baseline column
and possible computation results (delta) in their related column.
Example files samples: - file A with samples f1, f2, f3, f4, f6 - file B with samples f2, f4, f5 - file C with samples f1, f2, f5
Example output: x - computation takes place for pair b - baseline sample percentage
o perf diff A B C
baseline/A compute/B compute/C samples
---------------------------------------
b x f1
b x x f2
b f3
b x f4
b f6
x x f5
o perf diff B A C
baseline/B compute/A compute/C samples
---------------------------------------
b x x f2
b x f4
b x f5
x x f1
x f3
x f6
o perf diff C B A
baseline/C compute/B compute/A samples
---------------------------------------
b x f1
b x x f2
b x f5
x f3
x x f4
x f6
COMPARISON METHODS
delta
If specified the Delta column is displayed with value d computed as:
d = A->period_percent - B->period_percent
with: - A/B being matching hist entry from data/baseline file specified (or perf.data/perf.data.old) respectively.
o period_percent being the % of the hist entry period value within single data file
ratio
If specified the Ratio column is displayed with value r computed as:
r = A->period / B->period
with: - A/B being matching hist entry from data/baseline file specified (or perf.data/perf.data.old) respectively.
o period being the hist entry period value
wdiff:WEIGHT-B,WEIGHT-A
If specified the Weighted diff column is displayed with value d computed as:
d = B->period * WEIGHT-A - A->period * WEIGHT-B
o A/B being matching hist entry from data/baseline file specified (or perf.data/perf.data.old) respectively.
o period being the hist entry period value
o WEIGHT-A/WEIGHT-B being user suplied weights in the the -c option behind : separator like -c wdiff:1,2.
o WIEGHT-A being the weight of the data file
o WIEGHT-B being the weight of the baseline data file
SEE ALSO
perf-record(1)
perf 06/30/2014 PERF-DIFF(1)