01-12-2015
R singh, Sorry, Its not working
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i have a function which return a variable .
serach ( paramatere) when i excute this function i get the result in the shell,
i want to print this result in a file by calling just the function.
how can i do it..
the code example is like that:
search ( )
{
..
}
the call... (0 Replies)
Discussion started by: kamel.seg
0 Replies
2. Shell Programming and Scripting
i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0.
i uses awk'{if($5 > 0){print}}' filename.txt but is printing out result which not i wanted. Is there any way which i can print out those pcpu which is... (8 Replies)
Discussion started by: thms_sum
8 Replies
3. Shell Programming and Scripting
Hi all,
Say I have a script named script.sh. What it does is to print a line like "abc"
#! /usr/bin/ksh
print "abc"
I would like to pass this value to an external variable,
var1="script.sh"
However when I echo $var1 I got "script.sh" itself instead of the result?
Thanks (3 Replies)
Discussion started by: isaacniu
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have input file which is pipe delimited
A | 1
B | 2
c | 3I need output of displaying total number of lines in a file as last column.
A | 1 | 3-----total number of linesin file.
B | 2 | 3
c | 3 | 3 (9 Replies)
Discussion started by: pravinashwin
9 Replies
5. UNIX for Dummies Questions & Answers
I am reading a file of Linux ( like mentioned below) & the data is represented in a single line like mentioned below:
11/03 4:00 39992 0.098 5.195 0.034 0.001 1.091 182 0.000 0 0.071 4.252 0.033 0.001 666.53
Now i want to print the result in other file something like this :-
39992... (5 Replies)
Discussion started by: Anamica
5 Replies
6. Shell Programming and Scripting
Hi,
I have a html line as below :-... (6 Replies)
Discussion started by: satishmallidi
6 Replies
7. UNIX for Dummies Questions & Answers
I am trying to move files which donot have same filename using
find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS" -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print
but i am getting all filenames including the ones with duplicate names.Please help me to sort... (5 Replies)
Discussion started by: parijat guh
5 Replies
8. Shell Programming and Scripting
Dear all,
I am using the awk 'split' command to get the particular value.
FILE=InputFile_009_0.txt
Temp=$(echo $FILE | awk '{split($FILE, a, "e_"); print a}')
I would like to have the Temp take the value as : _009_0
... (4 Replies)
Discussion started by: emily
4 Replies
9. Shell Programming and Scripting
I have an file which have data in lines as follows
ad, findline=24,an=54,ab=34,av=64,ab=7989,ab65=34,aj=323,ay=34,au=545,ad=5545
ab,abc,an10=23,an2=24,an31=32,findline=00,an33=23,an32=26,an40=45,ac23=5,ac=87,al=76,ad=26... (3 Replies)
Discussion started by: deepKrish
3 Replies
10. Shell Programming and Scripting
i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}'
INPUT
1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)
Discussion started by: mirwasim
11 Replies
LEARN ABOUT DEBIAN
threadscope
THREADSCOPE(1) General Commands Manual THREADSCOPE(1)
NAME
threadscope - a graphical thread profiler for Haskell GHC programs
SYNOPSIS
threadscope [program.eventlog]
DESCRIPTION
Threadscope is a graphical thread profiler for Haskell programs.
It parses and displays the content of .eventlog files emitted by the GHC 6.12.1 and later runtimes, showing a timeline of spark creation,
spark-to-thread promotions and garbage collections.
This helps debugging the parallel performance of Haskell programs, making easier to check that work is well balanced across the available
processors and spot performance issues relating to garbage collection or poor load balancing.
ARGUMENTS
threadscope takes the name of the GHC RTS event-log file to process as its single argument. If no filename is given, threadscope starts
with an empty workspace, where any event-log file can be loaded by means of the GUI file browser facilities.
USAGE
In order for threadscope to be useful, you have to compile your Haskell program to use GHC's threaded run-time and also to create runtime
profile logs. This can be accomplished with the following command line options to ghc(1)
$ ghc -threaded -eventlog --make Foo.hs -o foo
Once the program is built, execute it using the multithreaded run-time, specifying the number of HECs (Haskell Execution Contexts) to use
in the usual manner, but also requesting the creation of an event log. For example, to use two HECs and create an event log you would use
$ foo +RTS -N2 -ls -RTS ...
Once the program runs to completion, a file named foo.eventlog is produced. You can start threadscope from the shell prompt passing the
event-log filename as the single argument, or you can start threadscope from the desktop menus and use its file browsing capabilities to
find and open it.
SEE ALSO
ghc(1)
AUTHOR
threadscope was written by
Simon Marlow <marlowsd@gmail.com>
Donnie Jones <donnie@darthik.com>
Satnam Singh <s.singh@ieee.org>
This manual page was written by
Ernesto Hernandez-Novich (USB) <emhn@usb.ve>
for the Debian project (and may be used by others).
June 28, 2010 THREADSCOPE(1)