Sponsored Content
Operating Systems OS X (Apple) Sorting scientific numbers with sort Post 302944714 by Scrutinizer on Thursday 21st of May 2015 12:05:02 PM
Old 05-21-2015
You're welcome. Try putting
Code:
export LANG=en_US.UTF-8

in your .profile

---

Quote:
Originally Posted by plebs
[..]
Oh bummer! That was it! It's a stupid German thing as we have to do it differently as most of the rest of the world. [..]
Don't know about that:

Image
Green is comma, blue is dot.
Decimal mark - Wikipedia, the free encyclopedia

Last edited by Scrutinizer; 05-21-2015 at 01:48 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to add/multiply numbers with scientific notation (2.343e-5)

Hi, I'm need to do some addition and multiplication of scientific nottaion numbers, in the form 34.23423e-10 for example. I was echoing the list of numbers to stdout, then using bc -l, then I find that this does not seem to work for numbers with exponential notation. Could someone help me out... (1 Reply)
Discussion started by: chugger06
1 Replies

2. Shell Programming and Scripting

How to Sort Floating Numbers Using the Sort Command?

Hi to all. I'm trying to sort this with the Unix command sort. user1:12345678:3.5:2.5:8:1:2:3 user2:12345679:4.5:3.5:8:1:3:2 user3:12345687:5.5:2.5:6:1:3:2 user4:12345670:5.5:2.5:5:3:2:1 user5:12345671:2.5:5.5:7:2:3:1 I need to get this: user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7 Replies

3. UNIX for Dummies Questions & Answers

sorting numbers with sort -n

Looking for help for sort, I learned that for sorting numbers I use: sort -n but it seems that that is not enough when you have numbers like 0.2000E+7 for example, sort -n will not worry about the E+7 part, and will just sort the numbers like 0.2000. Exapmle: cat example.txt .91000E+07... (9 Replies)
Discussion started by: cosmologist
9 Replies

4. Shell Programming and Scripting

Sorting with header and mixed numerals (scientific and decimal) | awk

Assoc.txt CHR SNP BP A1 TEST NMISS OR STAT P 1 rs2980319 766985 A ADD 4154 1.024 0.1623 0.8711 1 rs2980319 766985 A AGECAT 4154 1.371 6.806 1.003e-11 1 ... (6 Replies)
Discussion started by: genehunter
6 Replies

5. Shell Programming and Scripting

Is it Possible to sort a list of hexadecimal numbers using "sort" command?

Hello Everybody :) !!!. i have question in mind, is it possible to sort a list of hexadecimal numbers using "sort" command? (9 Replies)
Discussion started by: Kesavan
9 Replies

6. Shell Programming and Scripting

Sorting numbers containing symbols

hi all, i need help on sorting data. i have a file as below /home/oracle $ cat 234.txt +1234 -2356 -1001 +231 0023 -0987 +19000 65487 6 after sorting i want the output as below -2356 -1001 (2 Replies)
Discussion started by: mahesh1987
2 Replies

7. UNIX for Dummies Questions & Answers

Sorting files ending in numbers with "sort"

I have a group of files that I need to be sorted by number. I have tried to use the sort command without any luck. ls includes* includes1 includes10 includes11 includes12 includes2 includes3 includes4 includes5 includes6 includes7 includes8 includes9 I have tried ls includes*... (6 Replies)
Discussion started by: newbie2010
6 Replies

8. Shell Programming and Scripting

Sorting mixed numbers and letters

Hello, I have a file such as this: chr1 chr2 chr1 chr2 chr3 chr10 chr4 chr5 chrz chr1AI want to sort it, I use this command: sort -k1 -th -n testfilebut I get this output, how can I fix this? chr1 chr1 chr10 chr1A chr2 chr2 (3 Replies)
Discussion started by: Homa
3 Replies

9. Shell Programming and Scripting

Help: Sorting the numbers without using sort command

Hi, I've got two arrays 1 3 5 7 2 4 6 8 and i need to write a shell script to get the output 1 2 3 4 5 6 7 8 without using sort or bubble sort. (1 Reply)
Discussion started by: web2moha
1 Replies

10. Shell Programming and Scripting

Help with Sorting numbers in a file

Hi Guys, Would appreciate some help on sorting numbers on a file using the sort command. I have tried this and it's not sorting properly. what am i missing? cat testing_sort 1:21 4:18 2:17 7:14 9:19 3:12 0:16 8:13 5:20 6:15 10:11 sort -t: -nk1,1 -nk2,2 testing_sort (4 Replies)
Discussion started by: Apollo
4 Replies
String::CamelCase(3pm)					User Contributed Perl Documentation				    String::CamelCase(3pm)

NAME
String::CamelCase - camelcase, de-camelcase VERSION
Version 0.01 SYNOPSIS
use String::CamelCase qw(camelize decamelize wordsplit); print camelize("some_keyword"); # ==> SomeKeyword print decamelize("SomeKeyword"); # ==> some_keyword print wordsplit("some_keyword"); # ==> (some, keyword) print wordsplit("SomeKeyword"); # ==> (Some, Keyword) EXPORT
This module can export two functions, "camelize" and "decamelize". FUNCTIONS
camelize($under_score) convert from under_score text to CamelCase one. decamelize($CamelCase) convert from CamelCase text to under_score one. wordsplit($str) AUTHOR
YAMASHINA Hio, "<hio at cpan.org>" BUGS
Please report any bugs or feature requests to "bug-string-camelcase at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-CamelCase>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc String::CamelCase You can also look for information at: o AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/String-CamelCase> o CPAN Ratings <http://cpanratings.perl.org/d/String-CamelCase> o RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=String-CamelCase> o Search CPAN <http://search.cpan.org/dist/String-CamelCase> SEE ALSO
CamelCase(en.wikipedia.org) <http://en.wikipedia.org/wiki/CamelCase> CamelCase(ja.wikipedia.org) <http://ja.wikipedia.org/wiki/%E3%82%AD%E3%83%A3%E3%83%A1%E3%83%AB%E3%82%B1%E3%83%BC%E3%82%B9> COPYRIGHT &; LICENSE Copyright 2006 YAMASHINA Hio, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-12-27 String::CamelCase(3pm)
All times are GMT -4. The time now is 05:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy