I have a flat file and need to count no of records in the file less the header and the trailer record.
I would appreciate any and all asistance
Thanks
Hadi Lalani (2 Replies)
Hello,
I searched the forums on the keywords in the title I used above, but I did not find the answer:
Is it possible to count records in a .zip file on an AIX machine if i don't have pkunzip installed?
From all the research I'm reading in google and the reading of pkunzip in Unix.com,... (3 Replies)
I've got following script that I thought would only email me when the if clause finds the grep. But it emails me anyway (with an empty file) even if the grep doesn't return anything.
What should the line be?
if
then grep -l 'unique constraint' $LOGDIR/archive_active* >... (3 Replies)
Hi everyone.
I am a newbie to Linux stuff. I have this kind of problem which couldn't solve alone. I have a text file with records separated by empty lines like this:
ID: 20
Name: X
Age: 19
ID: 21
Name: Z
ID: 22
Email: xxx@yahoo.com
Name: Y
Age: 19
I want to grep records that... (4 Replies)
How do I do a grep wc that counts occurences of two or more different strings?
If I have string1 two times and string2 three times, how do I use wc to get the number 5? (1 Reply)
Hi,
I am having .csv files contains some row -
Info: Value of field name 'SecurityExchange' is not supported ","Original Order Tuple
Please see the below perl code carefully-
/Info: (+),Original (\w+) Tuple/ and do {
($category, $type) = ($1, $2);
if($type eq 'Execution')... (1 Reply)
Hi,
It is very interesting to learn the unix, i just struck with a doubt like i have below content in my file
xyz
xyz xyz
xyz
i just want know the word count by using grep -wc 'xyz' <filename>,
but it is giving 3 instead of 4.So i understood that it is showing matched line numbers count... (2 Replies)
Hi Guys
I have a text file that contains the message like this
/var/log/messages.all-20120401: Mar 26 12:12:23 brent kernel: NVRM: Xid (0003:00): 43, 0005 00009097 00000000 00000000 00001b0c 1000f010
/var/log/messages.all-20120401: Mar 27 20:42:40 brent kernel: NVRM: Xid (0003:00): 43,... (4 Replies)
I am trying to count the number of records from different files using grep, and then place the result in a separate variable for each file, so at the end of my shell script, I can sum all the variables and check if the number of records are equal to what I was expecting. It is weird butwc -ldoes... (2 Replies)
I am trying to figure out to find word count of each word from my file
sample file
hi how are you
hi are you ok
sample out put
hi 1
how 1
are 1
you 1
hi 1
are 1
you 1
ok 1
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
4 Replies
LEARN ABOUT DEBIAN
ocamlprof
OCAMLPROF(1) General Commands Manual OCAMLPROF(1)NAME
ocamlprof - The Objective Caml profiler
SYNOPSIS
ocamlprof [ options ] filename ...
DESCRIPTION
The ocamlprof command prints execution counts gathered during the execution of a Objective Caml program instrumented with ocamlcp(1).
It produces a source listing of the program modules given as arguments where execution counts have been inserted as comments. For instance,
ocamlprof foo.ml
prints the source code for the foo module, with comments indicating how many times the functions in this module have been called. Natu-
rally, this information is accurate only if the source file has not been modified since the profiling execution took place.
OPTIONS -f dumpfile
Specifies an alternate dump file of profiling information.
-F string
Specifies an additional string to be output with profiling information. By default, ocamlprof(1) will annotate programs with com-
ments of the form (* n *) where n is the counter value for a profiling point. With option -F s the annotation will be (* sn *)
-impl filename
Compile the file filename as an implementation file, even if its extension is not .ml.
-intf filename
Compile the file filename as an interface file, even if its extension is not .mli.
-version
Print version string and exit.
-vnum Print short version number and exit.
-help or --help
Display a short usage summary and exit.
SEE ALSO ocamlcp(1).
The Objective Caml user's manual, chapter "Profiling".
OCAMLPROF(1)