05-11-2008
Thanks very much, that worked well. Very compact!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a pattern like this in a file:
123 4 56 789
234 5 67 789
121 3 56 789
222 4 65 789
321 6 90 100
478 8 40 789
243 7 80 789
How can I count the number of occurences of '789' (4th column) in this set...?
Thanks for all your help!
K (7 Replies)
Discussion started by: kripssmart
7 Replies
2. Shell Programming and Scripting
I need to count the number of occurrences of a pattern, say 'key', between each occurrence of a different pattern, say 'lu'.
Here's a portion of the text I'm trying to parse:
lu S1234L_149_m1_vg.6, part-att 1, vdp-att 1 p-reserver IID 0xdb
registrations:
key 4156 4353 0000 0000
... (3 Replies)
Discussion started by: slipstream
3 Replies
3. Shell Programming and Scripting
Gurus,
Need little guidance.
I have A.txt and B.txt file. B.txt file contains Unique strings.
Sample content of B.txt file for which i cut the fourth column uniquely and output directed to B.txt file
And A.txt file contains the above string as a fourth column which is last column.
So A.txt... (7 Replies)
Discussion started by: Shirisha
7 Replies
4. Shell Programming and Scripting
Hi!
In our current directory there are around 35000 files.
Out of these a few thousands(around 20000) start with, "testfiles9842323879838".
I want to count the number of files that have filenames starting with the above pattern. Please help me with the command i could use.
Thank... (7 Replies)
Discussion started by: atechcorp
7 Replies
5. Shell Programming and Scripting
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Discussion started by: swayam123
4 Replies
6. UNIX for Advanced & Expert Users
1000CUS E Y4NYRETAIL
10010004HELIOPOLIS
110000500022360591000056XX EG
1101DEBY XXAD ZSSKY TSSROS
1102HANYNNYY@HOTMAIL.COM
210030/05/201301/06/2013AED
3100 OPE
3100 CLO
3100 The
1000CUS E Y NYCORPORATE
10010004HELIOPOLIS
110000500025270504550203XX EG
1101XXXQ FOR CTING AND... (1 Reply)
Discussion started by: john2022
1 Replies
7. UNIX for Dummies Questions & Answers
How to find count total number of pattern in a file …
File contains : a.txt
-------------
aaa bbb nnn
ccc aaa bbb
aaa ddd aaa
aaa aaa aaa
grep -c aaa a.txt
Op: 4 ( But my requirement is should count the total no of patterns as 7 ) (4 Replies)
Discussion started by: Jitten
4 Replies
8. Shell Programming and Scripting
I have a directory of files, each with a variable (though small) number of lines. I would like to go through each line in each file, and print the:
-file name
-line number
-number of matches to the pattern /comp/ for each line.
Two example files:
cat... (4 Replies)
Discussion started by: pathunkathunk
4 Replies
9. Shell Programming and Scripting
Guys -
Need your ideas on a section of code to finish something up. To make a long story short, I'm parsing a print output file that goes to pre-printed forms. I'm intercepting it, parsing it, formatting it, cutting it up into individual pages, grabbing the text I want in zones, building an... (3 Replies)
Discussion started by: ampsys
3 Replies
10. UNIX for Beginners Questions & Answers
Guys
I am trying grep to read from pattern file and count occurances of each word.
input is
firstplace
secondplace
secondpot
patternfile is
place
first
second
i want the following.
1-count number of times keywords in patternfile occurs in begining of each line in input file.
so... (12 Replies)
Discussion started by: ahfze
12 Replies
LEARN ABOUT DEBIAN
tau_convert
TAU_CONVERT(1) Tools TAU_CONVERT(1)
NAME
tau_convert - convert TAU tracefiles into various alternative trace formats
SYNOPSIS
tau_convert [[-alog] [-SSDF] [-dump] [-paraver [-t]] [-pv]
[-vampir [ -longsymbolbugfix ] [ -compact ] [[ -user ] [ -class ] [ -all ]] [ -nocomm ]]] [outputtrc] {inputtrc} {edffile}
DESCRIPTION
tau_convert is generated when TAU is configured with the -TRACE option.
This program requires specification of a TAU tracefile and eventfile. It will convert the given TAU traces to the ASCII-based trace format
specified in the first argument. The conversion type specification may be followed by additional options specific to the conversion type.
It defaults to the single threaded vampir format if no other format is specified. tau_convert also accepts specification of an output file
as the last argument. If none is given it prints the converted data to the standard out.
OPTIONS
-alog convert TAU tracefile into the alog format (This format is deprecated. The SLOG2 format is recommended.)
-SDDF convert TAU tracefile into the SDDF format
-dump convert TAU tracefile into multi-column human readable text
-paraver convert TAU tracefile into paraver format
-t indicate conversion of multi threaded TAU trace into paraver format
-pv convert single threaded TAU tracefile into vampir format (all -vampir options apply) (default)
-vampir convert multi threaded TAU tracefile into vampir format
-longsymbolbugfix make the first characters of long, similar identifier strings unique to avoid a bug in vampir
-compact abbreviate individual event entries
-all compact all entries (default)
-user compact user entries only
-class compact class entries only
-nocomm disregard communication events
[outputtrc] specify the name of the output tracefile to be produced
EXAMPLES
To print the contents of a TAU tracefile to the screen:
tau_convert -dump app.trc tau.edf
To convert a merged, threaded TAU tracefile to paraver format:
tau_convert -paraver -t app.trc tau.edf app.pv
SEE ALSO
tau_merge(1), tau2vtf(1), tau2profile(1), tau2slog2(1)
12/22/2005 TAU_CONVERT(1)