Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
sort command
Name: wzupeveryone Date: February 16, 2003 at 14:57:23 Pacific OS: unix CPU/Ram: p4 640
Comment:
i need some help with the sort command.
i want to make a one line command using redirection and pipes.i want to sort a file: file1 and file2 into file3 with the first 5 lines sorted.
Summary: I'm having problems sorting a 2Mb log file by date. I have combined two sorted logs into one file, with the one being added to the end of the other. I have tried all kinds of sort commands to arrange...
Summary: This solution prepends a 4-digit group number to each line to control the first sort level. That data is then piped into the sort command, then the sorted data is piped into cut to delete the first ...
Summary: In the solution below, awk rewrites the file just to remove the dashes from the second field so that they can be treated as separate fields by the sort command. On the first sort key, -k4 would mean f...