How to sort a file of size 2N bytes, if I have N bytes of memory?
Answers were Sorted based on User's Feedback
Answer / naggy
In sorting huge files, the most useful options for GNU sort
are "-S size" and "-T tmp_dir". The first option specify the
largest memory sort should use. Sort is more efficient with
larger memory. The second option indicates the temporary
directory used by sort. It is helpful if there is not enough
disk space in the "/tmp" partition.
-S, --buffer-size=SIZE
use SIZE for main memory buffer
Is This Answer Correct ? | 0 Yes | 0 No |
What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?
What are the main differences between RHEL4 & RHEL5?
What is the difference between ext3 and ext4?
What file should you examine to determine the defined runlevels for your system?
My root password has been changed, how can i enter into the system without root password?
What are main anti-spam features available in sendmail?
cups stands for..?
What utility can you use to automate rotation of logs?
what is the difference betweenh the NFS and FTP?
How do display error messages instantly when command fails?
How to findout, if the user is local user or NIS user in the Linux (RHEL)?
what is kernel panic error ? how will you fix it if you have face it after rebooting without the the help of rescue disk ?