10-24-2018
Thank you very much for your help, works like a charm.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
For instance.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
Discussion started by: yart
1 Replies
2. Shell Programming and Scripting
Hi all,
I have a file that looks like shown below. I want to find places where the value in column 2 change from negative to positive and vice versa and return the value on column 1 at that point. I wonder if this is possible in shell script or awk .. please help!
Here is the original data
... (6 Replies)
Discussion started by: malandisa
6 Replies
3. Shell Programming and Scripting
Hey,I have a file in following format
>1
ABC........
>2
XYZ.....
>3
ABC........
>4
MNO.......
>5
ABC.......
now I would like to find only those entries that doesn't start with ABC (specific pattern)e.g preferred output:
>2
XYZ....
>4
MNO.......
it will be nice if anybody how... (2 Replies)
Discussion started by: ankitachaurasia
2 Replies
4. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
5. Shell Programming and Scripting
Hi, hope you can help me... It seems like a straightforward problem, but I haven't had any success so far using my basic scripting and awk "skills":
I need to find a pattern /VEL/ in an input file that looks like this:
1110SOL OW25489 1.907 7.816 26.338 -0.4365 0.4100 -0.0736
... (3 Replies)
Discussion started by: origamisven
3 Replies
6. Shell Programming and Scripting
Hello I have a script that searches a file for a specific string and then changes the nth column after that string. I have searched online for how to do this with sed but have not seemed to find a solution that works for me. I am using bash.
Some background info:
- Currently I am using awk to... (4 Replies)
Discussion started by: prodigious8
4 Replies
7. Shell Programming and Scripting
Dear folks
I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
Discussion started by: sajmar
4 Replies
8. Shell Programming and Scripting
In the awk below I am trying to remove all instances after a ; (semi-colon) or , (comma) in the ANN= pattern. I am using gsub
to substitute an empty string in these, so that ANN= is a single value (with only one value in it the one right after the ANN=). Thank you :).
I have comented my awk and... (11 Replies)
Discussion started by: cmccabe
11 Replies
9. Shell Programming and Scripting
I am trying to change the number in bold to 2400
01,000300032,193631306,190619,0640,1,80,,2/
02,193631306,000300032,1,190618,0640,CAD,2/
I'm not sure if sed or awk is the answer. I was going to use sed and do a character count up to that point, but that column directly before 0640 might... (8 Replies)
Discussion started by: juggernautjoee
8 Replies
LEARN ABOUT REDHAT
profiler
profiler(n) Tcl Profiler profiler(n)
NAME
profiler - Tcl source code profiler
SYNOPSIS
package require Tcl 8.3
package require profiler ?0.2?
::profiler::init
::profiler::dump pattern
::profiler::print ?pattern?
::profiler::reset
::profiler::suspend ?pattern?
::profiler::resume ?pattern?
::profiler::sortFunctions key
DESCRIPTION
The profiler package provides a simple Tcl source code profiler. It is a function-level profiler; that is, it collects only function-level
information, not the more detailed line-level information. It operates by redefining the Tcl proc command. Profiling is initiated via the
::profiler::init command.
COMMANDS
::profiler::init
Initiate profiling. All procedures created after this command is called will be profiled. To profile an entire application, this
command must be called before any other commands.
::profiler::dump pattern
Dump profiling information for the all functions matching pattern. If no pattern is specified, information for all functions will
be returned. The result is a list of key/value pairs that maps function names to information about that function. The information
about each function is in turn a list of key/value pairs. The keys used and their values are:
totalCalls
The total number of times functionName was called.
callerDist
A list of key/value pairs mapping each calling function that called functionName to the number of times it called function-
Name.
compileTime
The runtime, in clock clicks, of functionName the first time that it was called.
totalRuntime
The sum of the runtimes of all calls of functionName.
averageRuntime
Average runtime of functionName.
descendantTime
Sum of the time spent in descendants of functionName.
averageDescendantTime
Average time spent in descendants of functionName.
::profiler::print ?pattern?
Print profiling information for all functions matching pattern. If no pattern is specified, information about all functions will be
displayed. The return result is a human readable display of the profiling information.
::profiler::reset
Reset profiling information for all functions matching pattern. If no pattern is specified, information will be reset for all func-
tions.
::profiler::suspend ?pattern?
Suspend profiling for all functions matching pattern. If no pattern is specified, profiling will be suspended for all functions. It
stops gathering profiling information after this command is issued. However, it does not erase any profiling information that has
been gathered previously. Use resume command to re-enable profiling.
::profiler::resume ?pattern?
Resume profiling for all functions matching pattern. If no pattern is specified, profiling will be resumed for all functions. This
command should be invoked after suspending the profiler in the code.
::profiler::sortFunctions key
Return a list of functions sorted by a particular profiling statistic. Supported values for key are: calls, exclusiveTime, compile-
Time, nonCompileTime, totalRuntime, avgExclusiveTime, and avgRuntime. The return result is a list of lists, where each sublist con-
sists of a function name and the value of key for that function.
KEYWORDS
profile, performance, speed
profiler 0.2 profiler(n)