how to sort date in decimal values uptp two digits

how to sort date in decimal values uptp two digits
# 1
11-04-2009
how to sort date in decimal values uptp two digits

Hi all,

there is a data in a file wich loks likes
I need to sort second feild in ascending order..

HTML Code:
`I tried several command but i am not getting my desired output, Can anyone hep me out.`
here's what i tried

 jojo123 View Public Profile for jojo123 Find all posts by jojo123
# 2
11-04-2009
You missed the "filed separator" to specify for sort.
 panyam View Public Profile for panyam Find all posts by panyam
# 3
11-04-2009
hmm thankz panyam for the reply, but i m afraid this dont work as the output did sort but accroding to first digit. here's what the output

i.e it did sorted according to second feild but its taking into account the first charcter.

i.e if valule is 39.98 its sorting data according to 3 and and then later 4.00

i want it should be sorted by taking into account the digits before point(.) i.e. larger value at the end.

Hope its clear now
 jojo123 View Public Profile for jojo123 Find all posts by jojo123
# 4
11-04-2009
might be something like this :

 panyam View Public Profile for panyam Find all posts by panyam

Printing with decimal places from last 4 digits

I have input file like below, 201424|9999|OSS|622010|RGT|00378228764 201424|8888|OM|587079|RGT|00284329675 201424|7777|OM|587076|RGT|00128671024 201424|6666|OM|581528|RGT|00113552084 Output should be like below, should add decimal (.) from last 4 digits. ...

How to sort when there is variable length decimal points.?

Hi Experts, Quick quesion: I want to sort this in the file , but not working, when using # sort file name 305.932 456.470 456.469 456.468 456.467 172.089 456.467 456.466 456.465 111.573 111.578 111.572 111.572 87.175 87.174 75.898

Sort Decimal number in UNIX

Hello Everyone, In one of my script, I would like to sort the decimal numbers. For e.g. If I have numbers like 1.0 1.1 1.2 2.0 2.1 3.0 4.0 5.0 6.0 7.0 7.1 7.10 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 I would like to sort them 1.0 1.1 1.2 2.0 2.1 3.0 4.0 5.0 6.0 7.0 7.1 7.2 7.3 7.4...

remove directories with two digits after decimal point

Hi everyone, I am new here and generally not experienced with linux. My question must be easy, but as for now I have no idea how to do it. I have lots of directories with numerical names, e.g. 50 50.1 50.12 etc. What I want is to leave directories with no or single digit after the decimal...

number of digits after decimal

Hi All, I have a file of decimal numbers, cat file1.txt 1.1382666907 1.2603107334 1.6118799297 24.4995857056 494.7632588468 560.7633734425 ..... I want to see the output as only 7 digits after decimal

How to get decimal values ?

Hi All, In my script I've written like this- c=\$( expr 100 / 3);echo \$c The output coming is 33. but I want to see 33.33, decimal values too. How to get that? Thanks, Naresh

How to sort a field in a file having date values

Hi All, I am having a pipe delimited file .In this file the 3rd column is having date values.I need to get the min date and max date from that file. I have used cut -d '|' test.dat -f 3|sort -u But it is not sorting the date .How to sort the date column using unix commands Thanks ...

Converting Binary decimal coded values to Ascii Values

Hi All, Is there any command which can convert binary decimal coded values to ascii values... i have bcd values like below оооооооооооо0о-- -v - Pls suggest a way to convert this. Thanks, Deepti.Gaur

How to sort decimal values in bash

Hi, I have a list of values from associative array from 0,..till 1.0000. I tried various sort options; sort -g, sort -nr but it still couldnt work. In other words, the numbers are not sorted accordingly. Please help. Thanks.