Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Believe it or not, the sort command can do things like that.
I don't know what you consider "massive." (What's the order of magnitude? MIllions of records? Tens of millions? Hundreds? Only the latter category might be considered truly "massive," and only in the sense that it will take a little while longer.)
The server I am doing has maybe about 1 million records per day, i want to sort out the username along side with the command use and also count for each command, is there anyway i can do it???
You have been giving good advices to start with the sort command.
Apparently, you are asking for more, without sharing here what you have tried so far.
Remember that while people are keen to help, they do not want to do your tasks or your homework.
Read the man page of sort, and test something.
Yes, you have got help already: see man sort, and if you need examples just look for tutorials/examples (of sort) on the web. You will find everything you need. In case you want to fine-tune a solution just show us what you have already picked and what is your problem with that. Since you gave no usable info we can hardly give you usable answer (by the way the answer is yes, there is a simple way) https://is.gd/8WT0AM
Recommend you attempt the sort command and then report how that attempt occurred.
Another thought is that in addition to sorting, you can also reduce this massive data set by using grep to only locate the records which matter out of that very large file.
When reporting results, it is best to place them within [code] tags.
If you are using a system with /tmp as tmpfs, you will likely need to use the
-T option to use an alternate location for your scratch files while sorting.
There is a hint that using an environment variable TMPDIR may redirect it also.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.