Sunday, 14 December 2008

sort command with a good option

How to sort a huge file of say 25G by its unique values, in which case sort uses /tmp to perform sorting where /tmp will have very less space i.e 2GB ?

In this case use sort -T /dir/path/file , where dir path is your own file system location where there is more disk space for sorting huge files.

**Many cases people might see "No free space left on device" message as /tmp is run out of space while sorting large files.

No comments:

Post a Comment

Tweets by @sriramperumalla