Can somebody give me the explanation for this command line:
ps>newfile<infile wc -l
?
I am totally confused with the order of its execution.. :confused:
Thanx,
Saneesh Joseph. (3 Replies)
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
If I have a flat file date.txt separate by a tab
date1 date2 count
20060226 20060225 2
20060227 20060226 2
20060228 20060227 5
20060314 20060228 2
20060315 20060314 1
If $3 (count) is 5 then execute the script testit.ksh with... (13 Replies)
I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example:
mycmd=''
if ...; then
$mycmd='sudo '
fi
$mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile
res=`$mycmd`
(I'm also not sure of the best way to execute the command from the... (1 Reply)
How to make it works this way?
echo dir1\/*.txt ; echo dir1\/*.html | xargs wc -l
dir1/*.txt
wc: dir1/*.html: No such file or directory
what i'm trying to do it to "wc dir1/*.txt" and "wc dir1/*.html" (2 Replies)
Hi All,
I need this to execute and not just print on Red Hat ent 4 bash shell.
cat /etc/passwd|grep db2 | awk -F":" '{print "cat /etc/group | grep ",$4}'
Output:
cat /etc/group | grep 1000 (I don't want this to print but execute)
Thanks for any comment you may add. (2 Replies)
HI,
I have a directory called input directory called "input", The "input" directory contains file names (file1,file2,file3,file4), I want to write a command so that it will display all the file names with comma separated.
Desired output: file1,file2,file3 so on....
Regards
Akshay... (2 Replies)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
LEARN ABOUT CENTOS
trace-cmd-extract
TRACE-CMD-EXTRACT(1)TRACE-CMD-EXTRACT(1)NAME
trace-cmd-extract - extract out the data from the Ftrace Linux tracer.
SYNOPSIS
trace-cmd extract [OPTIONS]
DESCRIPTION
The trace-cmd(1) extract is usually used after trace-cmd-start(1) and trace-cmd-stop(1). It can be used after the Ftrace tracer has been
started manually through the Ftrace pseudo file system.
The extract command creates a trace.dat file that can be used by trace-cmd-report(1) to read from. It reads the kernel internal ring buffer
to produce the trace.dat file.
OPTIONS -p plugin
Although extract does not start any traces, some of the plugins require just reading the output in ASCII format. These are the latency
tracers, since the latency tracers have a separate internal buffer. The plugin option is therefore only necessary for the wakeup,
wakeup-rt, irqsoff, preemptoff and preemptirqsoff plugins.
With out this option, the extract command will extract from the internal
Ftrace buffers.
-O option
If a latency tracer is being extracted, and the -p option is used, then there are some Ftrace options that can change the format. This
will update those options before extracting. To see the list of options see trace-cmd-list. To enable an option, write its name, to
disable the option append the characters no to it. For example: noprint-parent will disable the print-parent option that prints the
parent function in printing a function event.
-o outputfile
By default, the extract command will create a trace.dat file. This option will change where the file is written to.
SEE ALSO trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-reset(1), trace-cmd-split(1),
trace-cmd-list(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-EXTRACT(1)