04-11-2011
Thank You so much. This helped me alot...
10 More Discussions You Might Find Interesting
1. Solaris
Hi how do i grep only a part of the line from a file from all the lines.
file:
asdfgh 543212376 nag
lkjh abhilash 543757858
How do i grep and print only 543212376 and 543757858
Can i grep something like 543* and print only that. (3 Replies)
Discussion started by: 123nagendrabhi
3 Replies
2. Shell Programming and Scripting
Hi,
In a file FILE, there is a line like this one
MOLECULE C2 H2
I want to extract "C2 H2". I can do it in two step in a script :
VARIABLE="`grep MOLECULE FILE`" # Assign "MOLECULE C2 H2"
VARIABLE=`echo ${VARIABLE/"MOLECULE "}` # Remove "MOLECULE ".
Then,
$echo $VARIABLE
gives
C2... (6 Replies)
Discussion started by: tipi
6 Replies
3. Shell Programming and Scripting
How do I print only the values of the variables from set or env.
For example I have the lines
USER=USER
XYZ='text'
SHELL=/bin/bash
How do I print only the part after or starting from =
Let's say I have those lines in a list X
If I run
Y = echo $X | grep -o "=*$"
Y won't contain... (3 Replies)
Discussion started by: Transsive
3 Replies
4. UNIX for Dummies Questions & Answers
Hello All. I have an output file which contains the phrase "Total DFT Energy =" and then a number. This occurs many times in the output file, and what I want is to pipe the numbers (which are all different) to a file so I can plot them. How do I grep "Total DFT Energy =" and then get the numbers... (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies
5. Shell Programming and Scripting
Hi I just started on GNU Grep with regex and am finding it very challenging and need to ask for help already...
here is the problem, I have a page (MYFILE) which consists of the following....
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden"... (2 Replies)
Discussion started by: noobie74645
2 Replies
6. UNIX for Dummies Questions & Answers
<exp code="12556a" message="ok, fine4" displayMessage="jksdfj ksd" \>
<exp code="123456a" message="ok, 2fine" displayMessage="jksdfj ksd" \>
<exp code="12dfgda" message="1ok, fine" displayMessage="jksdfj ksd" \>
now I want to cut code attribute and message attribute, such as ... (2 Replies)
Discussion started by: vincent_W
2 Replies
7. Shell Programming and Scripting
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies
8. Shell Programming and Scripting
I need some help. I would like to read in a text file.
Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01.
Is this possible? any help is appreciated. (2 Replies)
Discussion started by: xChristopher
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a file with thousands of lines as below
INSERT INTO T_DIM_CLNT(CLNT_KY,CLNT_OBJ_ID,ISI_CLNT_ID,OPERN_ID,CLNT_NM,PRMRY_SIC_CD,PRMRY_SIC_DSC,RET_AGE_NBR,REC_CRT_TS,REC_DATA_EXTRC_TS,ETL_LOG_KY)
VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)... (5 Replies)
Discussion started by: sudhakar T
5 Replies
10. Shell Programming and Scripting
Hello,
I am java command from a shell script which will generate the below output on the command prompt
signature Base64 :... (10 Replies)
Discussion started by: chetanojha
10 Replies
LEARN ABOUT DEBIAN
callgrind_annotate
CALLGRIND
ANNOTATE(1) Release 3.7.0 CALLGRIND ANNOTATE(1)
NAME
callgrind_annotate - post-processing tool for the Callgrind
SYNOPSIS
callgrind_annotate [options] [callgrind-out-file [source-files...]]
DESCRIPTION
callgrind_annotate takes an output file produced by the Valgrind tool Callgrind and prints the information in an easy-to-read form.
OPTIONS
-h --help
Show summary of options.
--version
Show version of callgrind_annotate.
--show=A,B,C [default: all]
Only show figures for events A,B,C.
--sort=A,B,C
Sort columns by events A,B,C [event column order].
--threshold=<0--100> [default: 99%]
Percentage of counts (of primary sort event) we are interested in.
--auto=<yes|no> [default: no]
Annotate all source files containing functions that helped reach the event count threshold.
--context=N [default: 8]
Print N lines of context before and after annotated lines.
--inclusive=<yes|no> [default: no]
Add subroutine costs to functions calls.
--tree=<none|caller|calling|both> [default: none]
Print for each function their callers, the called functions or both.
-I, --include=<dir>
Add dir to the list of directories to search for source files.
SEE ALSO
valgrind(1), $INSTALL/share/doc/valgrind/html/index.html or http://www.valgrind.org/docs/manual/index.html.
AUTHOR
Josef Weidendorfer <Josef.Weidendorfer@gmx.de>.
This manual page was written by Philipp Frauenfelder <pfrauenf@debian.org>.
Release 3.7.0 06/05/2012 CALLGRIND ANNOTATE(1)