10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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?
sort -t: -nk1,1 -nk2,2 testing_sort (4 Replies)
Discussion started by: Apollo
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
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.
I have tried ls includes*... (6 Replies)
Discussion started by: newbie2010
4. Shell Programming and Scripting
i need help on sorting data.
i have a file as below
/home/oracle $ cat 234.txt
after sorting i want the output as below
-1001 (2 Replies)
Discussion started by: mahesh1987
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. UNIX for Dummies Questions & Answers
Looking for help for sort, I learned that for sorting numbers I use:
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.
.91000E+07... (9 Replies)
Discussion started by: cosmologist
8. Shell Programming and Scripting
Hi to all.
I'm trying to sort this with the Unix command sort.
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
9. UNIX for Dummies Questions & Answers
I have the following output where I need to sort the second column numerically (starting with IBMULT3580-TD10 and ending in IBMULT3580-TD123)
... (8 Replies)
Discussion started by: GKnight
10. UNIX for Dummies Questions & Answers
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