You will see that my second command sort it correctly whereas my first proposal doesn't handle it correclty since it was only performing a numeric sorting on the '00n' field and not on the 'X' of the run'X' field which was therefore sorted as litteral instead of numeric so that "10" arrive before 6 (start with 1 and 1<6) but with the second solution, the numeric sorting also apply to the X of runX so 10 is not considered as the string 1+0 but as the number 10 so that 10>6 so the 6 will be displayed before the 10.
I understand now. Thank you for the explanation.
---------- Post updated at 02:11 PM ---------- Previous update was at 02:08 PM ----------
Hi,
I need to do a sorting of 2 arrays. One array contains the values of both integer and character and other array can be anything. For example:
Array={'1L','2C','NULL','23L','11L','4C','10L','9C'}
Array= {'01-02-13-1x','02-11-23-3s','00-12-13-5f','NULL','22k',}
If any of these arrays... (6 Replies)
Hi List is
000|2008-07-17|556543|RTJ|35-RTGJ|EYT
465|2008-11-10|567789|GHJ|45-DGHH|ETU
533|2008-09-06|567789|GHJ|45-DGHH|ETU
How does it do it?
sort -t ':' +0 -1 -n +1 -2 +2 -3 -o list list (6 Replies)
Hi all,
I have a pecular issue in sorting these files (not an ls -lrt) in Solaris environment.
All the below files are modified on November 4th, but I want to sort these files as per date (eg: 01May07_1623 = ddmmmyy_hhmm)
Nov 4 18:27 SONYELEC00.GI22973.01May07_1623.gpg
Nov 4 18:27... (10 Replies)
EDIT : This is for perl
@data2 = grep(/$data/, @list_now);
This gives me @data2 as
Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared
But I really cant access data2 by its individual elements.
$data2 is the entire list, while $data,2,3...... (1 Reply)
Hi All
I've googled around for this and can't see a way of doing it.
I have a file that contains a number of records that are layed out something like the following.
/path/to/directory/that/contains/a/file/I/need/filename.pdf
The path itself can vary both in terms of the names and the... (7 Replies)
Hi Folks
I am very much a newbie at perl but picking it up and I'm hoping you can help.
I have a file input that details all the /etc/group files in our enterprise in the following format: "<host>:<group>:<gid>:<users>"
I want to parse this data display it as the following:... (9 Replies)
I am trying to sort a list
If you walk through the list, every you have passed both website1 and website2 and get back to website1, the last lines should be collected into one line and the process should start again.
The following:
http://www.website1.com
http://www.website1.com... (2 Replies)
Hello,
My OS is Windows and therefore DOS. Hence I have no access to Unix tools.
I am trying to sort a file in Urdu by the character by which it ends. Each word is on a separate line.
As input, an example in English would help:
fruit
banana
apple
pear
house
I need the sort to be on the... (5 Replies)
Hi I was wondering if anyone knew the best way to have files displayed by list so that they were in numerical order?
the problem I am having is I am using the ls and the head command to sort a group of 500 files into manageable 133 file bunches and transfer them to another directory were they will... (4 Replies)
Hi,
I have two pipe separated files as below:
head -3 file1.txt
"HD"|"Nov 11 2016 4:08AM"|"0000000018"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
head -3 file2.txt
"HD"|"Nov 15 2016 2:18AM"|"0000000019"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
I want to list the... (6 Replies)
Discussion started by: Prasannag87
6 Replies
LEARN ABOUT CENTOS
trace-cmd-check-events
TRACE-CMD-CHECK_EV(1)TRACE-CMD-CHECK_EV(1)NAME
trace-cmd-check-events - parse the event formats on local system
SYNOPSIS
trace-cmd check-events [OPTIONS]
DESCRIPTION
The trace-cmd(1) check-events parses format strings for all the events on the local system. It returns whether all the format strings can
be parsed correctly. It will load plugins unless specified otherwise.
This is useful to check for any trace event format strings which may contain some internal kernel function references which cannot be
decoded outside of the kernel. This may mean that either the unparsed format strings of the trace events need to be changed or that a
plugin needs to be created to parse them.
OPTIONS -N - Don't load plugins
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), trace-cmd-start(1)AUTHOR
Written by Vaibhav Nagarnaik, <vnagarnaik@google.com[1]>
RESOURCES
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
COPYING
Copyright (C) 2011 Google, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).
NOTES
1. vnagarnaik@google.com
mailto:vnagarnaik@google.com
06/11/2014 TRACE-CMD-CHECK_EV(1)