Hi,
When using sort on an associative array:
foreach $key (sort(keys(%opalfabet))){
$value = $opalfabet{$key};
$result .= $value;
}
How does it handle double values?
It seems to me that it removes them, is that true? If so, is there a way to get... (2 Replies)
plz help me..........i have a ksh script that sorts data in ascending order.
the 1st half is correct,but for the line no 31 its showing problem
1 #!/bin/ksh
2
3
4
5 echo "Enter the array length"
6 read num
7
8
9 echo "enter the... (4 Replies)
Data I want to sort :-
1 10 jj Y
2 100 vv B
19 5 jj A
1 11 hq D
3 8 op X
44 78 ds GG
1 8 hq D
and want to sort based on the first 2 columns - which hold numeric values.
Am using :
cat filename | sort -nk 1,2
But the result is :-
1 10 jj Y
1 11 hq D (1 Reply)
How is it possible to sort different nummeric values within an Array. But i don`t want the highest or the lowest. I need the most frequently occurring value.
For examble:
My Array has to following values = (200 404 404 500 404 404 404 200 404)
The result should be 404
The values are... (3 Replies)
Hi All,
I have an array in perl as @match = (201001,201002,201001,201002);
I am trying to sort this array as
@match = sort(@match);
print "@match";
I dont see the output sorted any answers
I also tried another way, but still the results are not sorted
foreach my $match (sort { $a... (2 Replies)
Hi All
I've got a perl script that I'm having a problem with when it prints the output of a hash. Some background. I'm trying to merge two file with a similar structure but with different data. Here is a portion of the script I'm using.
while (<INPUT>) {
my... (0 Replies)
I have got an Perl array like:
@array = (1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,7,8,9...............)
This numeric sequence will be always sequentially increasing, unless it encounters, The beginning of the new sequentially increasing numeric sequence.
SO in this array we get sequentially... (5 Replies)
I have a file which looks roughly like this:
996 mmmmmmm
996 xxxxxxxxxxxxx
99600 ssssssssss
9964 fffffffffffff
and would like to sort it numerically on the first field. I tried:
sort -nr --key=1 ....
The output I get is:
99600 ssssssssss
9964 ... (3 Replies)
Hi,
I use UBUNTU 12.04.
I have a file with this structure:
Name 2 1245787 A G 12 14 12 14 ....
Name 1 1245789 C T 13 12 12 12.....
I would like to sort my file based on the second column so to have this output for example:
Name 1 1245789 C T 13 12 12 12.....
Name 2 1245787 A G 12 14... (4 Replies)
Discussion started by: Homa
4 Replies
LEARN ABOUT DEBIAN
esreverse
ESREVERSE:(1) User Commands ESREVERSE:(1)NAME
esreverse - reverse an es stream
SYNOPSIS
esreverse [switches] <infile> <outfile>
DESCRIPTION
TS tools version 1.11, esreverse built Nov 11 2008 17:15:47
Output a reversed stream derived from the input H.264 (MPEG-4/AVC) or H.262 (MPEG-2) elementary stream.
If output is to an H.222 Transport Stream, then fixed values for the PMT PID (0x66) and video PID (0x68) are used.
Files:
<infile>
is the input elementary stream.
<outfile> is the output stream, either an equivalent elementary
stream, or an H.222 Transport Stream (but see -stdout and -host below).
Switches:
-verbose, -v
Output additional (debugging) messages
-quiet, -q
Only output error messages
-stdout
Write output to <stdout>, instead of a named file Forces -quiet.
-host <host>, -host <host>:<port>
Writes output (over TCP/IP) to the named <host>, instead of to a named file. If <port> is not specified, it defaults to 88. Implies
-tsout.
-max <n>, -m <n>
Maximum number of frames to read
-freq <n>
Specify the frequency of frames to try to keep when reversing. Defaults to 8.
-tsout Output H.222 Transport Stream
-pes, -ts
The input file is TS or PS, to be read via the PES->ES reading mechanisms
-server
Also output as normal forward video as reversal data is being collected. Implies -pes and -tsout.
-x Temporary extra debugging information
Stream type:
If input is from a file, then the program will look at the start of the file to determine if the stream is H.264 or H.262 data. This
process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches.
-h264, -avc
Force the program to treat the input as MPEG-4/AVC.
-h262 Force the program to treat the input as MPEG-2.
TS tools version 1.11, esreverse built Nov 11 2008 17:15:47
Output a reversed stream derived from the input H.264 (MPEG-4/AVC) or H.262 (MPEG-2) elementary stream.
If output is to an H.222 Transport Stream, then fixed values for the PMT PID (0x66) and video PID (0x68) are used.
Files:
<infile>
is the input elementary stream.
<outfile> is the output stream, either an equivalent elementary
stream, or an H.222 Transport Stream (but see -stdout and -host below).
Switches:
-verbose, -v
Output additional (debugging) messages
-quiet, -q
Only output error messages
-stdout
Write output to <stdout>, instead of a named file Forces -quiet.
-host <host>, -host <host>:<port>
Writes output (over TCP/IP) to the named <host>, instead of to a named file. If <port> is not specified, it defaults to 88. Implies
-tsout.
-max <n>, -m <n>
Maximum number of frames to read
-freq <n>
Specify the frequency of frames to try to keep when reversing. Defaults to 8.
-tsout Output H.222 Transport Stream
-pes, -ts
The input file is TS or PS, to be read via the PES->ES reading mechanisms
-server
Also output as normal forward video as reversal data is being collected. Implies -pes and -tsout.
-x Temporary extra debugging information
Stream type:
If input is from a file, then the program will look at the start of the file to determine if the stream is H.264 or H.262 data. This
process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches.
-h264, -avc
Force the program to treat the input as MPEG-4/AVC.
-h262 Force the program to treat the input as MPEG-2.
SEE ALSO
The full documentation for esreverse is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more information.
esreverse 1.11 November 2008 ESREVERSE:(1)