i have a funny behiavor of the sort fonction, i try it out on different Solaris machine and i have the same issue.
So i would like to see if there is a rationel explanation
here is some data in a file:test.txt
now if i sort that file, i receive this
sort test.txt
and here are a couple of strange things happening
1:
if you look the start of the file
it seem that the charactere "_" is sorted after the alphabete (that is what i want)
2: but if you look further
how come
is before
and how come
is not next
I am getting crazy ????
I will like to have the following output (which make the more sence for the sorting fontion)
thanks for your comments!!!
i am using
SunOS talos 5.10 Generic_147440-12 sun4u sparc SUNW,Sun-Fire-V490
Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Hey,
There was a small bug in the Quick Editor function in postbit, but I fixed it (basically a double quote was missing from an element id):
<div id="post_message_$post" class="neo-message-area">$post</div>
Was
<div id="post_message_$post class="neo-message-area">$post</div>
Should... (1 Reply)
Can anybody tell me where is the bug in this below mentioned function call.
#The String Search File
myString="${LOCATION}/config/stringFile.txt"
# Functional Usage
function usage() {
if ; then
echo "************************************************************"
... (5 Replies)
1. The problem statement, all variables and given/known data:
To sort a data
2. Relevant commands, code, scripts, algorithms:
The data provided is saved in dummy.txt and provided in LIBSVM format, but I think this information is redundant..
+1 1:2 2:4 4:3.2
-1 2:2.1 2:2.1 ... (4 Replies)
Hello,
basically what this script is supposed to do is showing a list of hosts that is given a number, that you will be able to choose from a list.
A check is made to verify that the chosen number is within the array and this is where things go bad and I don't know why, bizarre.
I've spent... (5 Replies)
Hi,
here is my perl script.This script creates an array and is sorting it using the in-built sort function in perl.
#!/usr/local/bin/perl
my number=6;
my @num_arr=(1,2,3,4,5);
my @array=(23,"$number","Hello",2.345,@num_arr);
#printing the array
print... (2 Replies)
My script is erroring with: testtapemgr.sh: FTP_RETURNS: not found
I cannot see what I am doing wrong..when it calls that function from the Volume returns function and says taht FTP_RETURNS is not found and exits out of the script. What am I not seeing here?
#### Return Volume Function ... (4 Replies)