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 to build new filesystem ? and what is irig file system?
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?
How to give 2 different gateway IP addresses for 2 different interfaces in same system ?
how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?
There are 4 network Interfaces, how can we find which one is Primary.
What are main anti-spam features available in sendmail?
what is the use of runlevel 4 in redhat linux? in which cases it will use.
i want some basic level enterview questions can any one can help me in this
How can you see all mounted drives?
Which directory is closer to the top of the file system tree, parent directory or current directory?
What is the name and path of the main system log?
what is difference between TFTP abd FTP?