Version: 0.1.19-44428cd
it looks like -o is the option for this version based on the options available:
$ samtools sort
Usage: samtools sort [options] <in.bam> <out.prefix>
Options: -n sort by read name
-f use <out.prefix> as full file name instead of prefix
-o final output to stdout
-l INT compression level, from 0 to 9 [-1]
-@ INT number of sorting and compression threads [1]
-m INT max memory per thread; suffix K/M/G recognized [768M]
Please use the formatting bar (especially the
codeoption) to present your post better. You can use backticks for inline code (`text` becomestext), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.JC : Please upgrade your
samtoolsto the latest version, which is now 1.9. Version you are using is really ancient.it is working with v.1.9. Thanks!