Search code examples
sortingcygwin

How can I type cygwin sort with -S option?


What is the syntax for -S option in sort? with capital S I try:

sort -S filename

it gives me invalid argument!

Thanks


Solution

  • According to the documentation

    -S, --buffer-size=SIZE
                  use SIZE for main memory buffer
    

    you should provide a number to the -S option. It also wokrs with human readable units like 8k, 2m, 1g.