9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have used sort -k1 -n data.txt > output.txt command on a large text data file with over 1,000,000 rows. The command managed to sort the data but the code did not read data according to sequence of occurrence. Given below are the first five lines of the data I need to sort;
1 1... (2 Replies)
Discussion started by: Theo Score
2. Shell Programming and Scripting
I have an input like
22.214.171.124 (5 Replies)
Discussion started by: dnam9917
3. 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
4. Homework & Coursework Questions
I have file ipaddress.txt
I want to sort as
So what sort command do I have to use. (1 Reply)
Discussion started by: RiderOnsky
5. 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
6. Shell Programming and Scripting
Hi i have a file containing ip addresses and want to sort those IP addresses in the ascending order.
file (match.txt) contents are:
sort -n match.txt
output is :... (3 Replies)
Discussion started by: manmeet
7. UNIX for Dummies Questions & Answers
IŽd like to get a few explanations about how the sort command works when cascading the options.
cscyabl@comet:(develop)> more file
cscyabl@comet:(develop)> sort -n -u file
cscyabl@comet:(develop)> sort -u -n file
10:A1... (8 Replies)
Discussion started by: Indalecio
8. UNIX for Dummies Questions & Answers
I am going to sort a huge flat file using sort command, this file is about 36 million lines, 179 fields delimitered by Ctrl B (002). eg.
I want this file being sorted by the first field, the result is like :
1^B198709........ (2 Replies)
Discussion started by: xli
9. UNIX for Dummies Questions & Answers
Can someone please tell me how to sort a file, based on a particular position within the file?
I have a line sequential file that is 152 bytes per record, in which i need to sort the file based on the numeric data in positions 142-152.
I have done the "man sort" command and see the -k option... (1 Reply)
Discussion started by: rjjenkin