in reply to Re: Huge files manipulation
in thread Huge files manipulation

Unix and gnu sort rely on having an adequate amount of available disk space on /tmp; if the OP is using a machine with insufficient free space on /tmp,  sort -u will fail.

Replies are listed 'Best First'.
Re^3: Huge files manipulation
by JavaFan (Canon) on Nov 10, 2008 at 21:41 UTC
    Only if you haven't told sort if can use another directory. (GNU) sort will either use the directory given with the -T option, the directory in the TMPDIR environment variable, or /tmp. In that order. The POSIX standard mentions that -T is undocumented, but existing in some implementations, and it encourages implementors to support the TMPDIR environment variable.