Hi,
I have a value of a filepath in a variable
DATAFILE with value as "customtop/gpsore37/gepspo/1.0/bin/ashoka.csv
".
Now i want the value of last 4 charcters in to another variable.
That is EXTENSION = .csv
How can i do this in Shell scripting
Thanks in advance
Alla Kishore (8 Replies)
Hello everyone.
I'm writing a script in UNIX. The purpose is to get the second character from a variable that stores the system year.
This is the code:
unix_year_yy=`date "+%g"`
This will return "07" in variable unix_year_yy. How can I get the second character (7)?? (6 Replies)
Dear All,
i have a file that contains,
FROM_DATE: 06-08-2007 00:00:00 TO_DATE: 06-08-2007 23:59:59 Total number of lines: 6874154
in another file,the contain is,
FROM_DATE: 06-08-2007 00:00:00 Total number of lines: 874154
alltime i want to find the particular string... (4 Replies)
I execute command on this file and it gives o/p like this.
COMMAND $ fuser -f /clocal/sanjay/AccessMonitor
/clocal/sanjay/AccessMonitor: 1368322c
To truncate 'c', i used tr -dc "\n" but then it does't give 1368322 as O/P.
Any help ?? (7 Replies)
Hi,
I am trying to do something which I thought was very simple but still being a beginner, has proved not to be.
Input:
val1 val2 val3 val4 val5 val6
.
.
.
etc
Desired Output:
Every row in which value of val6 is a number starting with 0.0 or contains a capital E. The input... (2 Replies)
I need to check the occurrence of one string within another.
code
********************
if ;then do something done
********************
Thanks (7 Replies)
Hi,
I hav a string lets say aa.txt:bb:txt
length of the string can vary.. I have to keep the token inside a array and the delimiter is : plz send me the code (2 Replies)
Hi All,
I have a ouput string likes 'u8wos' or 'u10acsd' or somthing else 'u{number}{any characters}'and I want to get the number behind the letter 'u' by bash shell.
Thanks
Damon (11 Replies)
Hi All,
In ksh, am trying to get a substring stuff done. Not sure where the problem is.. can you guys guide me on this...
for instance, var1=41, and var2=4175894567, then i want to know whether var2 starts with var1.. var1 and var2 can be of any length..
VAR1=41
VAR2=419068567777... (6 Replies)
Discussion started by: nram_krishna@ya
6 Replies
LEARN ABOUT CENTOS
trace-cmd-start
TRACE-CMD-START(1)TRACE-CMD-START(1)NAME
trace-cmd-start - start the Ftrace Linux kernel tracer without recording
SYNOPSIS
trace-cmd start [OPTIONS]
DESCRIPTION
The trace-cmd(1) start enables all the Ftrace tracing the same way trace-cmd-record(1) does. The difference is that it does not run threads
to create a trace.dat file. This is useful just to enable Ftrace and you are only interested in the trace after some event has occurred and
the trace is stopped. Then the trace can be read straight from the Ftrace pseudo file system or can be extracted with trace-cmd-extract(1).
OPTIONS
The options are the same as trace-cmd-record(1), except that it does not take options specific to recording (-s, -o, -F, -N, and -t).
SEE ALSO trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-stop(1), trace-cmd-extract(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-START(1)