08-31-2012
10 More Discussions You Might Find Interesting
1. Programming
i think grep can only find char in files matching a pattern without any wildcards like ? correct? It works with * but not ?.
how can i write a small c program to find words in a file, like a list, that matches a pattern like ma?y, b??con, etc if grep doesn't understand ? in a pattern search. if... (1 Reply)
Discussion started by: giannicello
1 Replies
2. Filesystems, Disks and Memory
How to search a given pattern in the files which are present in my current working directory and its subdirectories recursively (1 Reply)
Discussion started by: gandhevinod
1 Replies
3. Shell Programming and Scripting
Hi Guys,
Can you help with the shell script:
I would like to search a fixed width pattern from a file
say for each line from a fixed position and lenght it has to return all rows from the file.
Example:
To search the third column for "def" it has to return 1 and 4th rows only
... (2 Replies)
Discussion started by: sbasetty
2 Replies
4. Shell Programming and Scripting
I have a problem in searching a specific pattern in c files.
My requirement:
I have to find all the division operator in all cfiles.
The problem is, the multi line comments and single line comments will also have forward slash in it.
Even after avoiding these comments also, if both... (6 Replies)
Discussion started by: murthybptl
6 Replies
5. Shell Programming and Scripting
can anybode tell me ? I want to search for a pattern present in a whole directory and subdirectories's files containg " crat"
I tried
grep -r "crat" */* ;
is it right ? (3 Replies)
Discussion started by: pranabrana
3 Replies
6. Shell Programming and Scripting
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies
7. Shell Programming and Scripting
How do I search for a pattern - N/A in a particular column using awk? (11 Replies)
Discussion started by: rabiu
11 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need small help from you people.
In a directory there are around 150 odd files and few them contain the word "TRACK" and few are not.
How can I find out the the list of those files which doesn't contain the word "TRACK"?
Thanks,
Siba (4 Replies)
Discussion started by: siba.s.nayak
4 Replies
9. Shell Programming and Scripting
Hi,
Can you please help me out here? I am trying develop a search pattern to extract certain words from the two strings below.
I want to extract ericsson_msc_live from the 2 strings and then the date, which is a part of the filename just before the .jar extension.
... (19 Replies)
Discussion started by: danish0909
19 Replies
10. Shell Programming and Scripting
Hi there,
Looking forward to your advice for the below:
I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs.
Sample:
I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies
LEARN ABOUT CENTOS
trace-cmd-hist
TRACE-CMD-HIST(1) TRACE-CMD-HIST(1)
NAME
trace-cmd-hist - show histogram of events in trace.dat file
SYNOPSIS
trace-cmd hist [OPTIONS][input-file]
DESCRIPTION
The trace-cmd(1) hist displays a histogram form from the trace.dat file. Instead of showing the events as they were ordered, it creates a
histogram that can be displayed per task or for all tasks where the most common events appear first. It uses the function tracer and call
stacks that it finds to try to put together a call graph of the events.
OPTIONS
-i input-file
By default, trace-cmd hist will read the file trace.dat. But the -i option open up the given input-file instead. Note, the input file
may also be specified as the last item on the command line.
-P
To compact all events and show the call graphs by ignoring tasks and different PIDs, add the -P to do so. Instead of showing the task
name, it will group all chains together and show "<all pids>".
SEE ALSO
trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1),
trace-cmd-split(1), trace-cmd-listen(1)
AUTHOR
Written by Steven Rostedt, <rostedt@goodmis.org[1]>
RESOURCES
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
COPYING
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).
NOTES
1. rostedt@goodmis.org
mailto:rostedt@goodmis.org
06/11/2014 TRACE-CMD-HIST(1)