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 |
how do you configure linux system as a router?
What is Hard mount and soft Mount?
What is page-in and page-out in redhat linux?
Where is standard output usually directed?
what is the difference between unix and linux...
What is the difference between ext3 and ext4?
My root password has been changed, how can i enter into the system without root password?
what is the use of runlevel 4 in redhat linux? in which cases it will use.
What are RPM?s, what do they offer?
Which directory is closer to the top of the file system tree, parent directory or current directory?
How to convert an IP address to a Domain name using Unix ?
there are many IPC mechanisms available in Linux ? Which one is best to use and when ?